| 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" |
| 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 "extensions/features/features.h" | 32 #include "extensions/features/features.h" |
| 32 #include "net/base/network_change_notifier.h" | 33 #include "net/base/network_change_notifier.h" |
| 33 #include "net/http/http_network_session.h" | 34 #include "net/http/http_network_session.h" |
| 34 | 35 |
| 35 class PrefProxyConfigTracker; | 36 class PrefProxyConfigTracker; |
| 36 class PrefService; | 37 class PrefService; |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 | 394 |
| 394 // True if QUIC is allowed by policy. | 395 // True if QUIC is allowed by policy. |
| 395 bool is_quic_allowed_by_policy_; | 396 bool is_quic_allowed_by_policy_; |
| 396 | 397 |
| 397 // True if HTTP/0.9 is allowed on non-default ports by policy. | 398 // True if HTTP/0.9 is allowed on non-default ports by policy. |
| 398 bool http_09_on_non_default_ports_enabled_; | 399 bool http_09_on_non_default_ports_enabled_; |
| 399 | 400 |
| 400 const base::TimeTicks creation_time_; | 401 const base::TimeTicks creation_time_; |
| 401 | 402 |
| 402 // Callback for updating data use prefs which needs to be initialized on UI | 403 // Callback for updating data use prefs which needs to be initialized on UI |
| 403 // thread and passed to |ChromeNetworkDelegate|. | 404 // thread and passed to |DataUseNetworkDelegate|. |
| 404 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; | 405 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; |
| 405 | 406 |
| 406 base::WeakPtrFactory<IOThread> weak_factory_; | 407 base::WeakPtrFactory<IOThread> weak_factory_; |
| 407 | 408 |
| 408 DISALLOW_COPY_AND_ASSIGN(IOThread); | 409 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 409 }; | 410 }; |
| 410 | 411 |
| 411 #endif // CHROME_BROWSER_IO_THREAD_H_ | 412 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |