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

Side by Side Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h

Issue 425653002: content: ResourceType cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 25 matching lines...) Expand all
36 explicit ChromeResourceDispatcherHostDelegate( 36 explicit ChromeResourceDispatcherHostDelegate(
37 prerender::PrerenderTracker* prerender_tracker); 37 prerender::PrerenderTracker* prerender_tracker);
38 virtual ~ChromeResourceDispatcherHostDelegate(); 38 virtual ~ChromeResourceDispatcherHostDelegate();
39 39
40 // ResourceDispatcherHostDelegate implementation. 40 // ResourceDispatcherHostDelegate implementation.
41 virtual bool ShouldBeginRequest( 41 virtual bool ShouldBeginRequest(
42 int child_id, 42 int child_id,
43 int route_id, 43 int route_id,
44 const std::string& method, 44 const std::string& method,
45 const GURL& url, 45 const GURL& url,
46 content::ResourceType::Type resource_type, 46 content::ResourceType resource_type,
47 content::ResourceContext* resource_context) OVERRIDE; 47 content::ResourceContext* resource_context) OVERRIDE;
48 virtual void RequestBeginning( 48 virtual void RequestBeginning(
49 net::URLRequest* request, 49 net::URLRequest* request,
50 content::ResourceContext* resource_context, 50 content::ResourceContext* resource_context,
51 content::AppCacheService* appcache_service, 51 content::AppCacheService* appcache_service,
52 content::ResourceType::Type resource_type, 52 content::ResourceType resource_type,
53 int child_id, 53 int child_id,
54 int route_id, 54 int route_id,
55 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE; 55 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE;
56 virtual void DownloadStarting( 56 virtual void DownloadStarting(
57 net::URLRequest* request, 57 net::URLRequest* request,
58 content::ResourceContext* resource_context, 58 content::ResourceContext* resource_context,
59 int child_id, 59 int child_id,
60 int route_id, 60 int route_id,
61 int request_id, 61 int request_id,
62 bool is_content_initiated, 62 bool is_content_initiated,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 #if defined(ENABLE_EXTENSIONS) 98 #if defined(ENABLE_EXTENSIONS)
99 struct StreamTargetInfo { 99 struct StreamTargetInfo {
100 std::string extension_id; 100 std::string extension_id;
101 std::string view_id; 101 std::string view_id;
102 }; 102 };
103 #endif 103 #endif
104 104
105 void AppendStandardResourceThrottles( 105 void AppendStandardResourceThrottles(
106 net::URLRequest* request, 106 net::URLRequest* request,
107 content::ResourceContext* resource_context, 107 content::ResourceContext* resource_context,
108 content::ResourceType::Type resource_type, 108 content::ResourceType resource_type,
109 ScopedVector<content::ResourceThrottle>* throttles); 109 ScopedVector<content::ResourceThrottle>* throttles);
110 110
111 #if defined(ENABLE_ONE_CLICK_SIGNIN) 111 #if defined(ENABLE_ONE_CLICK_SIGNIN)
112 // Append headers required to tell Gaia whether the sync interstitial 112 // Append headers required to tell Gaia whether the sync interstitial
113 // should be shown or not. This header is only added for valid Gaia URLs. 113 // should be shown or not. This header is only added for valid Gaia URLs.
114 void AppendChromeSyncGaiaHeader( 114 void AppendChromeSyncGaiaHeader(
115 net::URLRequest* request, 115 net::URLRequest* request,
116 content::ResourceContext* resource_context); 116 content::ResourceContext* resource_context);
117 #endif 117 #endif
118 118
119 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; 119 scoped_refptr<DownloadRequestLimiter> download_request_limiter_;
120 scoped_refptr<SafeBrowsingService> safe_browsing_; 120 scoped_refptr<SafeBrowsingService> safe_browsing_;
121 #if defined(ENABLE_EXTENSIONS) 121 #if defined(ENABLE_EXTENSIONS)
122 scoped_refptr<extensions::UserScriptListener> user_script_listener_; 122 scoped_refptr<extensions::UserScriptListener> user_script_listener_;
123 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; 123 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_;
124 #endif 124 #endif
125 prerender::PrerenderTracker* prerender_tracker_; 125 prerender::PrerenderTracker* prerender_tracker_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); 127 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate);
128 }; 128 };
129 129
130 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_ 130 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698