#include "components/translate/content/browser/partial_translate_manager.h"
#include "base/metrics/histogram_functions.h"
#include "base/strings/utf_string_conversions.h"
namespace {
const char kTranslatePartialTranslationHttpResponseCode[] = …;
}
PartialTranslateRequest::PartialTranslateRequest() = default;
PartialTranslateRequest::PartialTranslateRequest(
const PartialTranslateRequest& other) = default;
PartialTranslateRequest::~PartialTranslateRequest() = default;
PartialTranslateResponse::PartialTranslateResponse() = default;
PartialTranslateResponse::PartialTranslateResponse(
const PartialTranslateResponse& other) = default;
PartialTranslateResponse::~PartialTranslateResponse() = default;
PartialTranslateManager::PartialTranslateManager(
std::unique_ptr<ContextualSearchDelegate> delegate)
: … { … }
PartialTranslateManager::~PartialTranslateManager() = default;
void PartialTranslateManager::StartPartialTranslate(
content::WebContents* web_contents,
const PartialTranslateRequest& request,
PartialTranslateCallback callback) { … }
std::unique_ptr<ContextualSearchContext> PartialTranslateManager::MakeContext(
const PartialTranslateRequest& request) const { … }
PartialTranslateResponse PartialTranslateManager::MakeResponse(
const ResolvedSearchTerm& resolved_search_term) const { … }
void PartialTranslateManager::OnResolvedSearchTerm(
const ResolvedSearchTerm& resolved_search_term) { … }