Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: chrome/browser/prerender/prerender_tracker.cc

Issue 9371025: Move resource_context.h to content/public/browser. Remove the workaround in its destructor since ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/prerender/prerender_tracker.h" 5 #include "chrome/browser/prerender/prerender_tracker.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/prerender/prerender_manager.h" 10 #include "chrome/browser/prerender/prerender_manager.h"
11 #include "content/browser/renderer_host/render_view_host.h" 11 #include "content/browser/renderer_host/render_view_host.h"
12 #include "content/browser/renderer_host/resource_dispatcher_host.h" 12 #include "content/browser/renderer_host/resource_dispatcher_host.h"
13 #include "content/browser/resource_context.h"
14 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "content/public/browser/resource_context.h"
15 #include "net/base/load_flags.h" 15 #include "net/base/load_flags.h"
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 18
19 namespace prerender { 19 namespace prerender {
20 20
21 namespace { 21 namespace {
22 22
23 void CancelDeferredRequestOnIOThread(int child_id, int request_id) { 23 void CancelDeferredRequestOnIOThread(int child_id, int request_id) {
24 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 24 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 GetDefault()->AddPrerenderOnIOThread(child_route_id_pair); 340 GetDefault()->AddPrerenderOnIOThread(child_route_id_pair);
341 } 341 }
342 342
343 // static 343 // static
344 void PrerenderTracker::RemovePrerenderOnIOThreadTask( 344 void PrerenderTracker::RemovePrerenderOnIOThreadTask(
345 const ChildRouteIdPair& child_route_id_pair) { 345 const ChildRouteIdPair& child_route_id_pair) {
346 GetDefault()->RemovePrerenderOnIOThread(child_route_id_pair); 346 GetDefault()->RemovePrerenderOnIOThread(child_route_id_pair);
347 } 347 }
348 348
349 } // namespace prerender 349 } // namespace prerender
OLDNEW
« no previous file with comments | « chrome/browser/chrome_plugin_service_filter.cc ('k') | chrome/browser/profiles/off_the_record_profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698