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

Side by Side Diff: chrome/browser/net/chrome_network_delegate.h

Issue 2337233006: CL for src perf tryjob to run page_cycler_v2.intl_ko_th_vi benchmark on all-android platform(s)
Patch Set: Created 4 years, 3 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 | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/chrome_network_delegate.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 (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_NET_CHROME_NETWORK_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 14 matching lines...) Expand all
25 class PrefService; 25 class PrefService;
26 26
27 template<class T> class PrefMember; 27 template<class T> class PrefMember;
28 28
29 typedef PrefMember<bool> BooleanPrefMember; 29 typedef PrefMember<bool> BooleanPrefMember;
30 30
31 namespace base { 31 namespace base {
32 class Value; 32 class Value;
33 } 33 }
34 34
35 namespace chrome_browser_net {
36 class ConnectInterceptor;
37 class Predictor;
38 }
39
35 namespace content_settings { 40 namespace content_settings {
36 class CookieSettings; 41 class CookieSettings;
37 } 42 }
38 43
39 namespace data_usage { 44 namespace data_usage {
40 class DataUseAggregator; 45 class DataUseAggregator;
41 } 46 }
42 47
43 namespace domain_reliability { 48 namespace domain_reliability {
44 class DomainReliabilityMonitor; 49 class DomainReliabilityMonitor;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void set_profile_path(const base::FilePath& profile_path) { 94 void set_profile_path(const base::FilePath& profile_path) {
90 profile_path_ = profile_path; 95 profile_path_ = profile_path;
91 } 96 }
92 97
93 // If |cookie_settings| is NULL or not set, all cookies are enabled, 98 // If |cookie_settings| is NULL or not set, all cookies are enabled,
94 // otherwise the settings are enforced on all observed network requests. 99 // otherwise the settings are enforced on all observed network requests.
95 // Not inlined because we assign a scoped_refptr, which requires us to include 100 // Not inlined because we assign a scoped_refptr, which requires us to include
96 // the header file. Here we just forward-declare it. 101 // the header file. Here we just forward-declare it.
97 void set_cookie_settings(content_settings::CookieSettings* cookie_settings); 102 void set_cookie_settings(content_settings::CookieSettings* cookie_settings);
98 103
104 // Causes requested URLs to be fed to |predictor| via ConnectInterceptor.
105 void set_predictor(chrome_browser_net::Predictor* predictor);
106
99 void set_enable_do_not_track(BooleanPrefMember* enable_do_not_track) { 107 void set_enable_do_not_track(BooleanPrefMember* enable_do_not_track) {
100 enable_do_not_track_ = enable_do_not_track; 108 enable_do_not_track_ = enable_do_not_track;
101 } 109 }
102 110
103 void set_force_google_safe_search( 111 void set_force_google_safe_search(
104 BooleanPrefMember* force_google_safe_search) { 112 BooleanPrefMember* force_google_safe_search) {
105 force_google_safe_search_ = force_google_safe_search; 113 force_google_safe_search_ = force_google_safe_search;
106 } 114 }
107 115
108 void set_force_youtube_safety_mode( 116 void set_force_youtube_safety_mode(
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 void ReportDataUsageStats(net::URLRequest* request, 200 void ReportDataUsageStats(net::URLRequest* request,
193 int64_t tx_bytes, 201 int64_t tx_bytes,
194 int64_t rx_bytes); 202 int64_t rx_bytes);
195 203
196 std::unique_ptr<ChromeExtensionsNetworkDelegate> extensions_delegate_; 204 std::unique_ptr<ChromeExtensionsNetworkDelegate> extensions_delegate_;
197 205
198 void* profile_; 206 void* profile_;
199 base::FilePath profile_path_; 207 base::FilePath profile_path_;
200 scoped_refptr<content_settings::CookieSettings> cookie_settings_; 208 scoped_refptr<content_settings::CookieSettings> cookie_settings_;
201 209
210 std::unique_ptr<chrome_browser_net::ConnectInterceptor> connect_interceptor_;
211
202 // Weak, owned by our owner. 212 // Weak, owned by our owner.
203 BooleanPrefMember* enable_referrers_; 213 BooleanPrefMember* enable_referrers_;
204 BooleanPrefMember* enable_do_not_track_; 214 BooleanPrefMember* enable_do_not_track_;
205 BooleanPrefMember* force_google_safe_search_; 215 BooleanPrefMember* force_google_safe_search_;
206 BooleanPrefMember* force_youtube_safety_mode_; 216 BooleanPrefMember* force_youtube_safety_mode_;
207 StringPrefMember* allowed_domains_for_apps_; 217 StringPrefMember* allowed_domains_for_apps_;
208 218
209 // Weak, owned by our owner. 219 // Weak, owned by our owner.
210 const policy::URLBlacklistManager* url_blacklist_manager_; 220 const policy::URLBlacklistManager* url_blacklist_manager_;
211 domain_reliability::DomainReliabilityMonitor* domain_reliability_monitor_; 221 domain_reliability::DomainReliabilityMonitor* domain_reliability_monitor_;
212 222
213 // When true, allow access to all file:// URLs. 223 // When true, allow access to all file:// URLs.
214 static bool g_allow_file_access_; 224 static bool g_allow_file_access_;
215 225
216 // Component to measure data use. 226 // Component to measure data use.
217 data_use_measurement::DataUseMeasurement data_use_measurement_; 227 data_use_measurement::DataUseMeasurement data_use_measurement_;
218 228
219 bool experimental_web_platform_features_enabled_; 229 bool experimental_web_platform_features_enabled_;
220 230
221 // Aggregates and reports network usage. 231 // Aggregates and reports network usage.
222 data_usage::DataUseAggregator* data_use_aggregator_; 232 data_usage::DataUseAggregator* data_use_aggregator_;
223 // Controls whether network usage is reported as being off the record. 233 // Controls whether network usage is reported as being off the record.
224 bool is_data_usage_off_the_record_; 234 bool is_data_usage_off_the_record_;
225 235
226 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); 236 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
227 }; 237 };
228 238
229 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 239 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698