Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Side by Side Diff: chrome/browser/io_thread.h

Issue 2014573002: Certificate Transparency: Wire the TreeStateTracker up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 30 matching lines...) Expand all
41 } 41 }
42 42
43 #if BUILDFLAG(ANDROID_JAVA_UI) 43 #if BUILDFLAG(ANDROID_JAVA_UI)
44 namespace chrome { 44 namespace chrome {
45 namespace android { 45 namespace android {
46 class ExternalDataUseObserver; 46 class ExternalDataUseObserver;
47 } 47 }
48 } 48 }
49 #endif // BUILDFLAG(ANDROID_JAVA_UI) 49 #endif // BUILDFLAG(ANDROID_JAVA_UI)
50 50
51 namespace certificate_transparency {
52 class TreeStateTracker;
53 }
54
51 namespace chrome_browser_net { 55 namespace chrome_browser_net {
52 class DnsProbeService; 56 class DnsProbeService;
53 } 57 }
54 58
55 namespace data_usage { 59 namespace data_usage {
56 class DataUseAggregator; 60 class DataUseAggregator;
57 } 61 }
58 62
59 namespace extensions { 63 namespace extensions {
60 class EventRouterForwarder; 64 class EventRouterForwarder;
(...skipping 17 matching lines...) Expand all
78 class NetworkDelegate; 82 class NetworkDelegate;
79 class NetworkQualityEstimator; 83 class NetworkQualityEstimator;
80 class ProxyConfigService; 84 class ProxyConfigService;
81 class ProxyService; 85 class ProxyService;
82 class SSLConfigService; 86 class SSLConfigService;
83 class TransportSecurityState; 87 class TransportSecurityState;
84 class URLRequestBackoffManager; 88 class URLRequestBackoffManager;
85 class URLRequestContext; 89 class URLRequestContext;
86 class URLRequestContextGetter; 90 class URLRequestContextGetter;
87 class URLRequestJobFactory; 91 class URLRequestJobFactory;
92
93 namespace ct {
94 class STHObserver;
95 }
96
88 } // namespace net 97 } // namespace net
89 98
90 namespace net_log { 99 namespace net_log {
91 class ChromeNetLog; 100 class ChromeNetLog;
92 } 101 }
93 102
94 namespace policy { 103 namespace policy {
95 class PolicyService; 104 class PolicyService;
96 } // namespace policy 105 } // namespace policy
97 106
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // called on the IO thread. 427 // called on the IO thread.
419 void ClearHostCache(); 428 void ClearHostCache();
420 429
421 const net::HttpNetworkSession::Params& NetworkSessionParams() const; 430 const net::HttpNetworkSession::Params& NetworkSessionParams() const;
422 431
423 base::TimeTicks creation_time() const; 432 base::TimeTicks creation_time() const;
424 433
425 // Returns the callback for updating data use prefs. 434 // Returns the callback for updating data use prefs.
426 const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder(); 435 const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder();
427 436
437 // Registers the |observer| for new STH notifications.
438 void RegisterSTHObserver(net::ct::STHObserver* observer);
Sorin Jianu 2016/05/25 16:17:48 Can we do more smart pointers instead of raw point
Eran Messeri 2016/05/25 16:26:18 I couldn't see a way. I don't think it is necessar
439
440 // Un-registers the |observer|.
441 void UnregisterSTHObserver(net::ct::STHObserver* observer);
442
428 private: 443 private:
429 // Provide SystemURLRequestContextGetter with access to 444 // Provide SystemURLRequestContextGetter with access to
430 // InitSystemRequestContext(). 445 // InitSystemRequestContext().
431 friend class SystemURLRequestContextGetter; 446 friend class SystemURLRequestContextGetter;
432 447
433 friend class test::IOThreadPeer; 448 friend class test::IOThreadPeer;
434 449
435 // BrowserThreadDelegate implementation, runs on the IO thread. 450 // BrowserThreadDelegate implementation, runs on the IO thread.
436 // This handles initialization and destruction of state that must 451 // This handles initialization and destruction of state that must
437 // live on the IO thread. 452 // live on the IO thread.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 // lifetime of the IO thread. 518 // lifetime of the IO thread.
504 519
505 Globals* globals_; 520 Globals* globals_;
506 521
507 net::HttpNetworkSession::Params params_; 522 net::HttpNetworkSession::Params params_;
508 NetworkSessionConfigurator network_session_configurator_; 523 NetworkSessionConfigurator network_session_configurator_;
509 524
510 // Observer that logs network changes to the ChromeNetLog. 525 // Observer that logs network changes to the ChromeNetLog.
511 std::unique_ptr<net::LoggingNetworkChangeObserver> network_change_observer_; 526 std::unique_ptr<net::LoggingNetworkChangeObserver> network_change_observer_;
512 527
528 std::unique_ptr<certificate_transparency::TreeStateTracker> ct_tree_tracker_;
529
513 BooleanPrefMember system_enable_referrers_; 530 BooleanPrefMember system_enable_referrers_;
514 531
515 BooleanPrefMember dns_client_enabled_; 532 BooleanPrefMember dns_client_enabled_;
516 533
517 BooleanPrefMember quick_check_enabled_; 534 BooleanPrefMember quick_check_enabled_;
518 535
519 // Store HTTP Auth-related policies in this thread. 536 // Store HTTP Auth-related policies in this thread.
520 // TODO(aberent) Make the list of auth schemes a PrefMember, so that the 537 // TODO(aberent) Make the list of auth schemes a PrefMember, so that the
521 // policy can change after startup (https://crbug/549273). 538 // policy can change after startup (https://crbug/549273).
522 std::string auth_schemes_; 539 std::string auth_schemes_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 // Callback for updating data use prefs which needs to be initialized on UI 577 // Callback for updating data use prefs which needs to be initialized on UI
561 // thread and passed to |ChromeNetworkDelegate|. 578 // thread and passed to |ChromeNetworkDelegate|.
562 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; 579 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_;
563 580
564 base::WeakPtrFactory<IOThread> weak_factory_; 581 base::WeakPtrFactory<IOThread> weak_factory_;
565 582
566 DISALLOW_COPY_AND_ASSIGN(IOThread); 583 DISALLOW_COPY_AND_ASSIGN(IOThread);
567 }; 584 };
568 585
569 #endif // CHROME_BROWSER_IO_THREAD_H_ 586 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698