| 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_IO_THREAD_H_ | 5 #ifndef CHROME_BROWSER_IO_THREAD_H_ |
| 6 #define CHROME_BROWSER_IO_THREAD_H_ | 6 #define CHROME_BROWSER_IO_THREAD_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 namespace chrome_browser_net { | 55 namespace chrome_browser_net { |
| 56 class DnsProbeService; | 56 class DnsProbeService; |
| 57 } | 57 } |
| 58 | 58 |
| 59 namespace data_usage { | 59 namespace data_usage { |
| 60 class DataUseAggregator; | 60 class DataUseAggregator; |
| 61 } | 61 } |
| 62 | 62 |
| 63 namespace data_use_measurement { |
| 64 class ChromeDataUseAscriber; |
| 65 } |
| 66 |
| 63 namespace extensions { | 67 namespace extensions { |
| 64 class EventRouterForwarder; | 68 class EventRouterForwarder; |
| 65 } | 69 } |
| 66 | 70 |
| 67 namespace net { | 71 namespace net { |
| 68 class CTPolicyEnforcer; | 72 class CTPolicyEnforcer; |
| 69 class CertVerifier; | 73 class CertVerifier; |
| 70 class ChannelIDService; | 74 class ChannelIDService; |
| 71 class CookieStore; | 75 class CookieStore; |
| 72 class CTLogVerifier; | 76 class CTLogVerifier; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 explicit SystemRequestContextLeakChecker(Globals* globals); | 125 explicit SystemRequestContextLeakChecker(Globals* globals); |
| 122 ~SystemRequestContextLeakChecker(); | 126 ~SystemRequestContextLeakChecker(); |
| 123 | 127 |
| 124 private: | 128 private: |
| 125 Globals* const globals_; | 129 Globals* const globals_; |
| 126 }; | 130 }; |
| 127 | 131 |
| 128 Globals(); | 132 Globals(); |
| 129 ~Globals(); | 133 ~Globals(); |
| 130 | 134 |
| 135 // Ascribes all data use in Chrome to a source, such as page loads. |
| 136 std::unique_ptr<data_use_measurement::ChromeDataUseAscriber> |
| 137 data_use_ascriber; |
| 131 // Global aggregator of data use. It must outlive the | 138 // Global aggregator of data use. It must outlive the |
| 132 // |system_network_delegate|. | 139 // |system_network_delegate|. |
| 133 std::unique_ptr<data_usage::DataUseAggregator> data_use_aggregator; | 140 std::unique_ptr<data_usage::DataUseAggregator> data_use_aggregator; |
| 134 #if BUILDFLAG(ANDROID_JAVA_UI) | 141 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 135 // An external observer of data use. | 142 // An external observer of data use. |
| 136 std::unique_ptr<chrome::android::ExternalDataUseObserver> | 143 std::unique_ptr<chrome::android::ExternalDataUseObserver> |
| 137 external_data_use_observer; | 144 external_data_use_observer; |
| 138 #endif // BUILDFLAG(ANDROID_JAVA_UI) | 145 #endif // BUILDFLAG(ANDROID_JAVA_UI) |
| 139 // The "system" NetworkDelegate, used for Profile-agnostic network events. | 146 // The "system" NetworkDelegate, used for Profile-agnostic network events. |
| 140 std::unique_ptr<net::NetworkDelegate> system_network_delegate; | 147 std::unique_ptr<net::NetworkDelegate> system_network_delegate; |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 // Callback for updating data use prefs which needs to be initialized on UI | 402 // Callback for updating data use prefs which needs to be initialized on UI |
| 396 // thread and passed to |ChromeNetworkDelegate|. | 403 // thread and passed to |ChromeNetworkDelegate|. |
| 397 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; | 404 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; |
| 398 | 405 |
| 399 base::WeakPtrFactory<IOThread> weak_factory_; | 406 base::WeakPtrFactory<IOThread> weak_factory_; |
| 400 | 407 |
| 401 DISALLOW_COPY_AND_ASSIGN(IOThread); | 408 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 402 }; | 409 }; |
| 403 | 410 |
| 404 #endif // CHROME_BROWSER_IO_THREAD_H_ | 411 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |