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 <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
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/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/values.h" | 17 #include "base/values.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "chrome/browser/net/safe_search_util.h" | 19 #include "chrome/browser/net/safe_search_util.h" |
| 20 #include "chrome/browser/net/traffic_annotation/network_traffic_annotation_check
er.h" |
20 #include "components/domain_reliability/monitor.h" | 21 #include "components/domain_reliability/monitor.h" |
21 #include "components/prefs/pref_member.h" | 22 #include "components/prefs/pref_member.h" |
22 #include "net/base/network_delegate_impl.h" | 23 #include "net/base/network_delegate_impl.h" |
23 | 24 |
24 class ChromeExtensionsNetworkDelegate; | 25 class ChromeExtensionsNetworkDelegate; |
25 class PrefService; | 26 class PrefService; |
26 | 27 |
27 template<class T> class PrefMember; | 28 template<class T> class PrefMember; |
28 | 29 |
29 typedef PrefMember<bool> BooleanPrefMember; | 30 typedef PrefMember<bool> BooleanPrefMember; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 std::unique_ptr<domain_reliability::DomainReliabilityMonitor> | 208 std::unique_ptr<domain_reliability::DomainReliabilityMonitor> |
208 domain_reliability_monitor_; | 209 domain_reliability_monitor_; |
209 | 210 |
210 bool experimental_web_platform_features_enabled_; | 211 bool experimental_web_platform_features_enabled_; |
211 | 212 |
212 // Aggregates and reports network usage. | 213 // Aggregates and reports network usage. |
213 data_usage::DataUseAggregator* data_use_aggregator_; | 214 data_usage::DataUseAggregator* data_use_aggregator_; |
214 // Controls whether network usage is reported as being off the record. | 215 // Controls whether network usage is reported as being off the record. |
215 bool is_data_usage_off_the_record_; | 216 bool is_data_usage_off_the_record_; |
216 | 217 |
| 218 NetworkTrafficAnnotationChecker network_traffic_annotation_checker_; |
217 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 219 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
218 }; | 220 }; |
219 | 221 |
220 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 222 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |