Searched refs:TranslateService (Results 1 – 15 of 15) sorted by relevance
26 TranslateService* g_translate_service = NULL;29 TranslateService::TranslateService() { in TranslateService() function in TranslateService33 TranslateService::~TranslateService() {} in ~TranslateService()36 void TranslateService::Initialize() { in Initialize()40 g_translate_service = new TranslateService; in Initialize()52 void TranslateService::Shutdown(bool cleanup_pending_fetcher) { in Shutdown()64 void TranslateService::InitializeForTesting() { in InitializeForTesting()66 TranslateService::Initialize(); in InitializeForTesting()74 void TranslateService::ShutdownForTesting() { in ShutdownForTesting()78 void TranslateService::OnResourceRequestsAllowed() { in OnResourceRequestsAllowed()[all …]
18 EXPECT_FALSE(TranslateService::IsTranslatableURL(empty_url)); in TEST()22 EXPECT_FALSE(TranslateService::IsTranslatableURL(chrome_url)); in TEST()26 EXPECT_FALSE(TranslateService::IsTranslatableURL(devtools_url)); in TEST()33 EXPECT_FALSE(TranslateService::IsTranslatableURL(filemanager_url)); in TEST()38 EXPECT_FALSE(TranslateService::IsTranslatableURL(ftp_url)); in TEST()41 EXPECT_TRUE(TranslateService::IsTranslatableURL(right_url)); in TEST()
14 class TranslateService : public ResourceRequestAllowedNotifier::Observer {51 TranslateService();52 ~TranslateService();
249 TranslateService::InitializeForTesting(); in SetUp()281 TranslateService::ShutdownForTesting(); in TearDown()410 if (TranslateService::IsTranslateBubbleEnabled()) in TEST_F()493 if (TranslateService::IsTranslateBubbleEnabled()) in TEST_F()523 if (TranslateService::IsTranslateBubbleEnabled()) in TEST_F()595 if (TranslateService::IsTranslateBubbleEnabled()) in TEST_F()742 if (TranslateService::IsTranslateBubbleEnabled()) in TEST_F()776 if (TranslateService::IsTranslateBubbleEnabled()) in TEST_F()801 if (TranslateService::IsTranslateBubbleEnabled()) in TEST_F()830 if (TranslateService::IsTranslateBubbleEnabled()) in TEST_F()[all …]
128 if (TranslateService::IsTranslateBubbleEnabled()) in IN_PROC_BROWSER_TEST_F()196 if (TranslateService::IsTranslateBubbleEnabled()) in IN_PROC_BROWSER_TEST_F()230 if (TranslateService::IsTranslateBubbleEnabled()) in IN_PROC_BROWSER_TEST_F()263 if (TranslateService::IsTranslateBubbleEnabled()) in IN_PROC_BROWSER_TEST_F()296 if (TranslateService::IsTranslateBubbleEnabled()) in IN_PROC_BROWSER_TEST_F()329 if (TranslateService::IsTranslateBubbleEnabled()) in IN_PROC_BROWSER_TEST_F()
174 if (TranslateService::IsTranslateBubbleEnabled()) { in ShowTranslateUI()246 return TranslateService::IsTranslatableURL(url); in IsTranslatableURL()
258 lib = google.translate.TranslateService({
130 TranslateService::GetTargetLanguage(prefs); in GetLocalizedValues()
77 !TranslateService::IsTranslatableURL(language_detection_details->url)) { in Observe()
1267 TranslateService::Initialize(); in PreMainMessageLoopRunImpl()1637 TranslateService::Shutdown(parameters().ui_task == NULL); in PostMainMessageLoopRun()
1134 if (TranslateService::IsTranslateBubbleEnabled()) in IN_PROC_BROWSER_TEST_F()
744 if (!TranslateService::IsTranslateBubbleEnabled())
793 if (TranslateService::IsTranslatableURL(params_.page_url)) { in AppendPageItems()
1145 if (!TranslateService::IsTranslateBubbleEnabled()) in RefreshTranslateIcon()
2004 if (TranslateService::IsTranslateBubbleEnabled()) in IN_PROC_BROWSER_TEST_F()