Home
last modified time | relevance | path

Searched refs:TranslateScript (Results 1 – 8 of 8) sorted by relevance

/external/chromium_org/components/translate/core/browser/
Dtranslate_script.cc32 const char TranslateScript::kScriptURL[] =
34 const char TranslateScript::kRequestHeader[] =
36 const char TranslateScript::kAlwaysUseSslQueryName[] = "aus";
37 const char TranslateScript::kAlwaysUseSslQueryValue[] = "true";
38 const char TranslateScript::kCallbackQueryName[] = "cb";
39 const char TranslateScript::kCallbackQueryValue[] =
41 const char TranslateScript::kCssLoaderCallbackQueryName[] = "clc";
42 const char TranslateScript::kCssLoaderCallbackQueryValue[] =
44 const char TranslateScript::kJavascriptLoaderCallbackQueryName[] = "jlc";
45 const char TranslateScript::kJavascriptLoaderCallbackQueryValue[] =
[all …]
Dtranslate_script_unittest.cc27 script_.reset(new TranslateScript); in SetUp()
42 return url_fetcher_factory_.GetFetcherByID(TranslateScript::kFetcherId); in GetTestURLFetcher()
49 scoped_ptr<TranslateScript> script_;
60 GURL expected_url(TranslateScript::kScriptURL); in TEST_F()
73 base::StringPrintf("%s\r\n\r\n", TranslateScript::kRequestHeader); in TEST_F()
80 url, TranslateScript::kAlwaysUseSslQueryName, &always_use_ssl); in TEST_F()
81 EXPECT_EQ(std::string(TranslateScript::kAlwaysUseSslQueryValue), in TEST_F()
86 url, TranslateScript::kCallbackQueryName, &callback); in TEST_F()
87 EXPECT_EQ(std::string(TranslateScript::kCallbackQueryValue), callback); in TEST_F()
93 url, TranslateScript::kCssLoaderCallbackQueryName, &css_loader_callback); in TEST_F()
[all …]
Dtranslate_script.h22 class TranslateScript {
28 TranslateScript();
29 virtual ~TranslateScript();
90 base::WeakPtrFactory<TranslateScript> weak_method_factory_;
92 DISALLOW_COPY_AND_ASSIGN(TranslateScript);
Dtranslate_download_manager.h49 TranslateScript* script() { return script_.get(); } in script()
102 scoped_ptr<TranslateScript> script_;
Dtranslate_download_manager.cc23 script_(new TranslateScript) {} in TranslateDownloadManager()
125 script_.reset(new TranslateScript); in ResetForTesting()
Dtranslate_manager.cc239 TranslateScript* script = TranslateDownloadManager::GetInstance()->script(); in TranslatePage()
250 TranslateScript::RequestCallback callback = base::Bind( in TranslatePage()
329 TranslateScript* translate_script = in OnTranslateScriptFetchComplete()
/external/chromium_org/chrome/browser/translate/
Dtranslate_browsertest.cc179 factory.GetFetcherByID(translate::TranslateScript::kFetcherId); in IN_PROC_BROWSER_TEST_F()
Dtranslate_manager_render_view_host_unittest.cc292 translate::TranslateScript::kFetcherId); in SimulateTranslateScriptURLFetch()