OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 private: | 81 private: |
82 void AppendStandardResourceThrottles( | 82 void AppendStandardResourceThrottles( |
83 const net::URLRequest* request, | 83 const net::URLRequest* request, |
84 content::ResourceContext* resource_context, | 84 content::ResourceContext* resource_context, |
85 int child_id, | 85 int child_id, |
86 int route_id, | 86 int route_id, |
87 ResourceType::Type resource_type, | 87 ResourceType::Type resource_type, |
88 ScopedVector<content::ResourceThrottle>* throttles); | 88 ScopedVector<content::ResourceThrottle>* throttles); |
89 | 89 |
90 // Adds Chrome experiment and metrics state as custom headers to |request|. | |
91 // This is a best-effort attempt, and does not interrupt the request if the | |
92 // headers can not be appended. | |
93 void AppendChromeMetricsHeaders( | |
94 net::URLRequest* request, | |
95 content::ResourceContext* resource_context, | |
96 ResourceType::Type resource_type); | |
97 | |
98 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; | 90 scoped_refptr<DownloadRequestLimiter> download_request_limiter_; |
99 scoped_refptr<SafeBrowsingService> safe_browsing_; | 91 scoped_refptr<SafeBrowsingService> safe_browsing_; |
100 scoped_refptr<UserScriptListener> user_script_listener_; | 92 scoped_refptr<UserScriptListener> user_script_listener_; |
101 prerender::PrerenderTracker* prerender_tracker_; | 93 prerender::PrerenderTracker* prerender_tracker_; |
102 | 94 |
103 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); | 95 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); |
104 }; | 96 }; |
105 | 97 |
106 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ | 98 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE
_H_ |
OLD | NEW |