Home
last modified time | relevance | path

Searched refs:prerender_manager (Results 1 – 25 of 34) sorted by relevance

12

/external/chromium_org/chrome/browser/prerender/
Dprerender_unittest.cc344 UnitTestPrerenderManager* prerender_manager() { in prerender_manager() function in prerender::PrerenderTest
353 prerender_manager()->mutable_config().max_link_concurrency_per_launcher = in SetConcurrency()
355 prerender_manager()->mutable_config().max_link_concurrency = in SetConcurrency()
356 std::max(prerender_manager()->mutable_config().max_link_concurrency, in SetConcurrency()
414 prerender_manager()->CreateNextPrerenderContents( in TEST_F()
419 ASSERT_EQ(prerender_contents, prerender_manager()->FindAndUseEntry(url)); in TEST_F()
429 prerender_manager()->CreateNextPrerenderContents( in TEST_F()
434 EXPECT_EQ(null, prerender_manager()->next_prerender_contents()); in TEST_F()
438 prerender_manager()->CreateNextPrerenderContents( in TEST_F()
443 prerender_manager()->next_prerender_contents()); in TEST_F()
[all …]
Dprerender_tab_helper.cc31 PrerenderManager* prerender_manager, in ReportTabHelperURLSeenToLocalPredictor() argument
34 if (!prerender_manager) in ReportTabHelperURLSeenToLocalPredictor()
37 prerender_manager->local_predictor(); in ReportTabHelperURLSeenToLocalPredictor()
72 PrerenderManager* prerender_manager = MaybeGetPrerenderManager(); in PrerenderTabHelper() local
73 if (prerender_manager && in PrerenderTabHelper()
74 prerender_manager->IsWebContentsPrerendering(web_contents, &origin_)) { in PrerenderTabHelper()
90 PrerenderManager* prerender_manager = MaybeGetPrerenderManager(); in ProvisionalChangeToMainFrameUrl() local
91 if (!prerender_manager) in ProvisionalChangeToMainFrameUrl()
93 if (prerender_manager->IsWebContentsPrerendering(web_contents(), NULL)) in ProvisionalChangeToMainFrameUrl()
95 ReportTabHelperURLSeenToLocalPredictor(prerender_manager, url, in ProvisionalChangeToMainFrameUrl()
[all …]
Dexternal_prerender_handler_android.cc43 PrerenderManager* prerender_manager = in AddPrerender() local
45 if (!prerender_manager) in AddPrerender()
53 prerender_manager->AddPrerenderFromExternalRequest( in AddPrerender()
83 prerender::PrerenderManager* prerender_manager = in HasPrerenderedUrl() local
85 if (!prerender_manager) in HasPrerenderedUrl()
89 return prerender_manager->HasPrerenderedUrl(url, web_contents); in HasPrerenderedUrl()
96 prerender::PrerenderManager* prerender_manager = in HasCookieStoreLoaded() local
98 if (!prerender_manager) in HasCookieStoreLoaded()
100 return prerender_manager->cookie_store_loaded(); in HasCookieStoreLoaded()
Dprerender_manager_factory.cc73 PrerenderManager* prerender_manager = new PrerenderManager( in BuildServiceInstanceFor() local
77 prerender_manager->AddCondition(new chromeos::PrerenderConditionNetwork); in BuildServiceInstanceFor()
80 prerender_manager->AddCondition(new android::PrerenderConditionPlatform( in BuildServiceInstanceFor()
83 return prerender_manager; in BuildServiceInstanceFor()
Dprerender_link_manager_factory.cc37 PrerenderManager* prerender_manager = in BuildServiceInstanceFor() local
39 if (!prerender_manager) in BuildServiceInstanceFor()
42 new PrerenderLinkManager(prerender_manager); in BuildServiceInstanceFor()
Dprerender_contents.cc102 PrerenderManager* prerender_manager, Profile* profile, in CreatePrerenderContents() argument
105 return new PrerenderContents(prerender_manager, profile, in CreatePrerenderContents()
219 PrerenderManager* prerender_manager, in PrerenderContents() argument
227 prerender_manager_(prerender_manager), in PrerenderContents()
246 DCHECK(prerender_manager != NULL); in PrerenderContents()
286 PrerenderManager* prerender_manager = PrerenderManagerFactory::GetForProfile( in FromWebContents() local
288 if (!prerender_manager) in FromWebContents()
290 return prerender_manager->GetPrerenderContents(web_contents); in FromWebContents()
346 prerender_manager()->AddPrerenderProcessHost( in StartPrerendering()
359 base::Unretained(prerender_manager()->prerender_tracker()), in StartPrerendering()
Dprerender_tracker_unittest.cc37 TestPrerenderContents(PrerenderManager* prerender_manager, in TestPrerenderContents() argument
39 : PrerenderContents(prerender_manager, static_cast<Profile*>(NULL), in TestPrerenderContents()
192 TestPrerenderManager* prerender_manager() { in prerender_manager() function in prerender::PrerenderTrackerTest
Dprerender_contents.h66 PrerenderManager* prerender_manager,
169 PrerenderManager* prerender_manager() { return prerender_manager_; } in prerender_manager() function
319 PrerenderContents(PrerenderManager* prerender_manager,
/external/chromium_org/chrome/browser/extensions/activity_log/
Dactivity_log_browsertest.cc81 prerender::PrerenderManager* prerender_manager = in IN_PROC_BROWSER_TEST_F() local
83 ASSERT_TRUE(prerender_manager); in IN_PROC_BROWSER_TEST_F()
84 prerender_manager->mutable_config().rate_limit_enabled = false; in IN_PROC_BROWSER_TEST_F()
87 prerender_manager->mutable_config().max_bytes = 1000 * 1024 * 1024; in IN_PROC_BROWSER_TEST_F()
88 prerender_manager->mutable_config().time_to_live = in IN_PROC_BROWSER_TEST_F()
90 prerender_manager->mutable_config().abandon_time_to_live = in IN_PROC_BROWSER_TEST_F()
105 if (!prerender_manager->cookie_store_loaded()) { in IN_PROC_BROWSER_TEST_F()
107 prerender_manager->set_on_cookie_store_loaded_cb_for_testing( in IN_PROC_BROWSER_TEST_F()
114 prerender_manager->AddPrerenderFromLocalPredictor( in IN_PROC_BROWSER_TEST_F()
Dactivity_log_unittest.cc244 prerender::PrerenderManager* prerender_manager = in TEST_F() local
248 prerender_manager->OnCookieStoreLoaded(); in TEST_F()
252 prerender_manager->AddPrerenderFromLocalPredictor( in TEST_F()
258 prerender_manager->GetAllPrerenderingContents(); in TEST_F()
261 ASSERT_TRUE(prerender_manager->IsWebContentsPrerendering(contents, NULL)); in TEST_F()
278 prerender_manager->CancelAllPrerenders(); in TEST_F()
Dactivity_log.cc598 const prerender::PrerenderManager* prerender_manager = in OnScriptsExecuted() local
600 if (prerender_manager && in OnScriptsExecuted()
601 prerender_manager->IsWebContentsPrerendering(web_contents, NULL)) in OnScriptsExecuted()
/external/chromium_org/chrome/browser/ui/search/
Dinstant_search_prerenderer.cc59 prerender::PrerenderManager* prerender_manager = in Init() local
61 if (prerender_manager) { in Init()
68 prerender_handle_.reset(prerender_manager->AddPrerenderForInstant( in Init()
128 prerender::PrerenderManager* prerender_manager = in UsePrerenderedPage() local
131 !prerender_contents() || !prerender_manager || in UsePrerenderedPage()
138 bool success = prerender_manager->MaybeUsePrerenderedPage( in UsePrerenderedPage()
Dinstant_search_prerenderer_unittest.cc51 PrerenderManager* prerender_manager,
86 PrerenderManager* prerender_manager,
101 PrerenderManager* prerender_manager, in DummyPrerenderContents() argument
108 : PrerenderContents(prerender_manager, profile, url, referrer, origin, in DummyPrerenderContents()
150 PrerenderManager* prerender_manager, in CreatePrerenderContents() argument
156 return new DummyPrerenderContents(prerender_manager, profile, url, referrer, in CreatePrerenderContents()
/external/chromium_org/chrome/browser/task_manager/
Dtab_contents_information.cc45 prerender::PrerenderManager* prerender_manager = in IsContentsPrerendering() local
47 return prerender_manager && in IsContentsPrerendering()
48 prerender_manager->IsWebContentsPrerendering(web_contents, NULL); in IsContentsPrerendering()
162 prerender::PrerenderManager* prerender_manager = in GetAll() local
164 if (prerender_manager) { in GetAll()
166 prerender_manager->GetAllPrerenderingContents(); in GetAll()
/external/chromium_org/chrome/browser/google/
Dgoogle_search_counter_android.cc38 prerender::PrerenderManager* prerender_manager = in ProcessCommittedEntry() local
42 prerender_manager ? prerender_manager->IsEnabled() : false; in ProcessCommittedEntry()
/external/chromium_org/chrome/browser/net/
Dcookie_store_util.cc88 prerender::PrerenderManager* prerender_manager = in OnLoadedAsyncHelper() local
90 if (prerender_manager) in OnLoadedAsyncHelper()
91 prerender_manager->OnCookieStoreLoaded(); in OnLoadedAsyncHelper()
Dnet_pref_observer.cc19 prerender::PrerenderManager* prerender_manager, in NetPrefObserver() argument
21 : prerender_manager_(prerender_manager), in NetPrefObserver()
Dnet_pref_observer.h34 prerender::PrerenderManager* prerender_manager,
/external/chromium_org/chrome/browser/history/
Dhistory_tab_helper.cc103 prerender::PrerenderManager* prerender_manager = in DidNavigateAnyFrame() local
106 if (prerender_manager) { in DidNavigateAnyFrame()
108 prerender_manager->GetPrerenderContents(web_contents()); in DidNavigateAnyFrame()
/external/chromium_org/chrome/browser/android/
Dtab_android.cc188 prerender::PrerenderManager* prerender_manager = GetPrerenderManager(); in HasPrerenderedUrl() local
189 if (!prerender_manager) in HasPrerenderedUrl()
193 prerender_manager->GetAllPrerenderingContents(); in HasPrerenderedUrl()
196 prerender_contents = prerender_manager-> in HasPrerenderedUrl()
393 prerender::PrerenderManager* prerender_manager = in LoadUrl() local
395 if (prerender_manager) { in LoadUrl()
413 if (prerender_manager->MaybeUsePrerenderedPage(gurl, &params)) { in LoadUrl()
Dchrome_web_contents_delegate_android.cc287 prerender::PrerenderManager* prerender_manager = in OpenURLFromTab() local
289 if (prerender_manager && in OpenURLFromTab()
290 prerender_manager->MaybeUsePrerenderedPage(params.url, &nav_params)) { in OpenURLFromTab()
/external/chromium_org/chrome/browser/ui/webui/net_internals/
Dnet_internals_ui_browsertest.cc319 prerender::PrerenderManager* prerender_manager = in SetUpOnMainThread() local
321 prerender_manager->mutable_config().max_bytes = 1000 * 1024 * 1024; in SetUpOnMainThread()
322 if (!prerender_manager->cookie_store_loaded()) { in SetUpOnMainThread()
324 prerender_manager->set_on_cookie_store_loaded_cb_for_testing( in SetUpOnMainThread()
/external/chromium_org/chrome/browser/ui/webui/memory_internals/
Dmemory_internals_proxy.cc101 prerender::PrerenderManager* prerender_manager = in GetAllWebContents() local
103 if (!prerender_manager) in GetAllWebContents()
106 prerender_manager->GetAllPrerenderingContents(); in GetAllWebContents()
/external/chromium_org/chrome/browser/browsing_data/
Dbrowsing_data_remover.cc338 prerender::PrerenderManager* prerender_manager = in RemoveImpl() local
340 if (prerender_manager) { in RemoveImpl()
341 prerender_manager->ClearData( in RemoveImpl()
588 prerender::PrerenderManager* prerender_manager = in RemoveImpl() local
590 if (prerender_manager) { in RemoveImpl()
591 prerender_manager->ClearData( in RemoveImpl()
/external/chromium_org/chrome/browser/renderer_host/
Dchrome_resource_dispatcher_host_delegate.cc153 prerender::PrerenderManager* prerender_manager = in UpdatePrerenderNetworkBytesCallback() local
155 if (prerender_manager) in UpdatePrerenderNetworkBytesCallback()
156 prerender_manager->AddProfileNetworkBytesIfEnabled(bytes); in UpdatePrerenderNetworkBytesCallback()

12