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

Side by Side Diff: chrome/browser/prerender/prerender_resource_throttle.h

Issue 2605503002: Prerender: Add thread checks to PrerenderResourceThrottle (Closed)
Patch Set: BrowserThread::IO (without content::) everywhere for consistency Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_resource_throttle.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_RESOURCE_THROTTLE_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_RESOURCE_THROTTLE_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_RESOURCE_THROTTLE_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_RESOURCE_THROTTLE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 bool is_no_store, 77 bool is_no_store,
78 int redirect_count, 78 int redirect_count,
79 scoped_refptr<PrerenderThrottleInfo> prerender_throttle_info); 79 scoped_refptr<PrerenderThrottleInfo> prerender_throttle_info);
80 80
81 // Helper to return the PrerenderContents given a WebContentsGetter. May 81 // Helper to return the PrerenderContents given a WebContentsGetter. May
82 // return nullptr if it's gone. 82 // return nullptr if it's gone.
83 static PrerenderContents* PrerenderContentsFromGetter( 83 static PrerenderContents* PrerenderContentsFromGetter(
84 const content::ResourceRequestInfo::WebContentsGetter& 84 const content::ResourceRequestInfo::WebContentsGetter&
85 web_contents_getter); 85 web_contents_getter);
86 86
87 // Sets the prerender mode. Must be called befor ResumeHandler(). 87 // Sets the prerender mode. Must be called before |ResumeHandler()|.
88 void SetPrerenderMode(PrerenderMode mode); 88 void SetPrerenderMode(PrerenderMode mode);
89 89
90 net::URLRequest* request_; 90 net::URLRequest* request_;
91 int load_flags_; // Load flags to be OR'ed with the existing request flags. 91 int load_flags_; // Load flags to be OR'ed with the existing request flags.
92 92
93 scoped_refptr<PrerenderThrottleInfo> prerender_throttle_info_; 93 scoped_refptr<PrerenderThrottleInfo> prerender_throttle_info_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(PrerenderResourceThrottle); 95 DISALLOW_COPY_AND_ASSIGN(PrerenderResourceThrottle);
96 }; 96 };
97 97
98 } // namespace prerender 98 } // namespace prerender
99 99
100 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_RESOURCE_THROTTLE_H_ 100 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_RESOURCE_THROTTLE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_resource_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698