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_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 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <memory> | 12 #include <memory> |
| 13 #include <set> | 13 #include <set> |
| 14 #include <string> | 14 #include <string> |
| 15 #include <unordered_set> | 15 #include <unordered_set> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
| 19 #include "base/macros.h" | 19 #include "base/macros.h" |
| 20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
| 21 #include "base/memory/weak_ptr.h" | 21 #include "base/memory/weak_ptr.h" |
| 22 #include "base/strings/string_piece.h" | 22 #include "base/strings/string_piece.h" |
| 23 #include "base/time/time.h" | 23 #include "base/time/time.h" |
| 24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
| 25 #include "chrome/browser/net/chrome_network_delegate.h" | 25 #include "chrome/browser/net/chrome_network_delegate.h" |
| 26 #include "chrome/common/features.h" | 26 #include "chrome/common/features.h" |
| 27 #include "components/metrics/data_use_tracker.h" | |
|
Not at Google. Contact bengr
2016/11/11 00:09:48
Not required?
Raj
2016/11/11 19:10:39
Still needed. |metrics_data_use_forwarder_| is use
| |
| 27 #include "components/prefs/pref_member.h" | 28 #include "components/prefs/pref_member.h" |
| 28 #include "components/ssl_config/ssl_config_service_manager.h" | 29 #include "components/ssl_config/ssl_config_service_manager.h" |
| 29 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
| 30 #include "content/public/browser/browser_thread_delegate.h" | 31 #include "content/public/browser/browser_thread_delegate.h" |
| 31 #include "net/base/network_change_notifier.h" | 32 #include "net/base/network_change_notifier.h" |
| 32 #include "net/http/http_network_session.h" | 33 #include "net/http/http_network_session.h" |
| 33 | 34 |
| 34 class PrefProxyConfigTracker; | 35 class PrefProxyConfigTracker; |
| 35 class PrefService; | 36 class PrefService; |
| 36 class PrefRegistrySimple; | 37 class PrefRegistrySimple; |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 392 | 393 |
| 393 // True if QUIC is allowed by policy. | 394 // True if QUIC is allowed by policy. |
| 394 bool is_quic_allowed_by_policy_; | 395 bool is_quic_allowed_by_policy_; |
| 395 | 396 |
| 396 // True if HTTP/0.9 is allowed on non-default ports by policy. | 397 // True if HTTP/0.9 is allowed on non-default ports by policy. |
| 397 bool http_09_on_non_default_ports_enabled_; | 398 bool http_09_on_non_default_ports_enabled_; |
| 398 | 399 |
| 399 const base::TimeTicks creation_time_; | 400 const base::TimeTicks creation_time_; |
| 400 | 401 |
| 401 // 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 |
| 402 // thread and passed to |ChromeNetworkDelegate|. | 403 // thread and passed to |DataUseNetworkDelegate|. |
| 403 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; | 404 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; |
| 404 | 405 |
| 405 base::WeakPtrFactory<IOThread> weak_factory_; | 406 base::WeakPtrFactory<IOThread> weak_factory_; |
| 406 | 407 |
| 407 DISALLOW_COPY_AND_ASSIGN(IOThread); | 408 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 408 }; | 409 }; |
| 409 | 410 |
| 410 #endif // CHROME_BROWSER_IO_THREAD_H_ | 411 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |