Chromium Code Reviews| 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_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 <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metr ics.h" | 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metr ics.h" |
| 19 #include "components/data_use_measurement/content/data_use_measurement.h" | |
| 19 #include "net/base/network_delegate_impl.h" | 20 #include "net/base/network_delegate_impl.h" |
| 20 | 21 |
| 21 class ChromeExtensionsNetworkDelegate; | 22 class ChromeExtensionsNetworkDelegate; |
| 22 class PrefService; | 23 class PrefService; |
| 23 | 24 |
| 24 template<class T> class PrefMember; | 25 template<class T> class PrefMember; |
| 25 | 26 |
| 26 typedef PrefMember<bool> BooleanPrefMember; | 27 typedef PrefMember<bool> BooleanPrefMember; |
| 27 | 28 |
| 28 namespace base { | 29 namespace base { |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 195 | 196 |
| 196 // Weak, owned by our owner. | 197 // Weak, owned by our owner. |
| 197 #if defined(ENABLE_CONFIGURATION_POLICY) | 198 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 198 const policy::URLBlacklistManager* url_blacklist_manager_; | 199 const policy::URLBlacklistManager* url_blacklist_manager_; |
| 199 #endif | 200 #endif |
| 200 domain_reliability::DomainReliabilityMonitor* domain_reliability_monitor_; | 201 domain_reliability::DomainReliabilityMonitor* domain_reliability_monitor_; |
| 201 | 202 |
| 202 // When true, allow access to all file:// URLs. | 203 // When true, allow access to all file:// URLs. |
| 203 static bool g_allow_file_access_; | 204 static bool g_allow_file_access_; |
| 204 | 205 |
| 206 // Component to measure data use. | |
| 207 data_use_measurement::DataUseMeasurement data_use_measurement_; | |
|
mmenke
2015/09/02 21:48:08
Worth noting this will miss PAC requests (Though t
amohammadkhan
2015/09/03 04:31:18
Thanks for the heads up. I think currently most of
| |
| 208 | |
| 205 bool experimental_web_platform_features_enabled_; | 209 bool experimental_web_platform_features_enabled_; |
| 206 | 210 |
| 207 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 211 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
| 208 }; | 212 }; |
| 209 | 213 |
| 210 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 214 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
| OLD | NEW |