| Index: chrome/browser/io_thread.h
|
| diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
|
| index 7a3fdadad0596f1a6bfcc1cd9b10b24e93df1066..60d27edb0e19e570ecf11bdd4166fe90864cde77 100644
|
| --- a/chrome/browser/io_thread.h
|
| +++ b/chrome/browser/io_thread.h
|
| @@ -84,6 +84,13 @@ class URLRequestBackoffManager;
|
| class URLRequestContext;
|
| class URLRequestContextGetter;
|
| class URLRequestJobFactory;
|
| +
|
| +namespace ct {
|
| +class CTObserver;
|
| +class STHObserver;
|
| +class STHReporter;
|
| +} // namespace ct
|
| +
|
| } // namespace net
|
|
|
| namespace net_log {
|
| @@ -171,6 +178,10 @@ class IOThread : public content::BrowserThreadDelegate {
|
| // |system_cookie_store| and |system_channel_id_service| are shared
|
| // between |proxy_script_fetcher_context| and |system_request_context|.
|
| std::unique_ptr<net::CookieStore> system_cookie_store;
|
| +
|
| + // Used by the cert_transparency_verifier. See IOThread::CleanUp
|
| + // on lifetime management of this object.
|
| + std::unique_ptr<net::ct::CTObserver> cert_transparency_observer;
|
| #if defined(ENABLE_EXTENSIONS)
|
| scoped_refptr<extensions::EventRouterForwarder>
|
| extension_event_router_forwarder;
|
| @@ -434,6 +445,16 @@ class IOThread : public content::BrowserThreadDelegate {
|
| // a result of a field trial or a command line flag.
|
| static bool ShouldEnableQuicForDataReductionProxy();
|
|
|
| + // Sets the reporter for new STH reports. Observers created by this
|
| + // class and other classes will be registered with it (the IOThread
|
| + // class will manage registration).
|
| + // Does not take ownership of |reporter| as it will out-live the IOThread.
|
| + void RegisterSTHReporter(net::ct::STHReporter* reporter);
|
| + // Registers the |observer| for new STH notifications.
|
| + void RegisterSTHObserver(net::ct::STHObserver* observer);
|
| + // Un-registers the |observer|.
|
| + void UnregisterSTHObserver(net::ct::STHObserver* observer);
|
| +
|
| // Returns the callback for updating data use prefs.
|
| const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder();
|
|
|
| @@ -568,6 +589,14 @@ class IOThread : public content::BrowserThreadDelegate {
|
| // True if QUIC is allowed by policy.
|
| bool is_quic_allowed_by_policy_;
|
|
|
| + // Owned by the STHSet component, is null before it's created.
|
| + net::ct::STHReporter* sth_reporter_;
|
| +
|
| + // Keeps track of all the STHObserver instances that need
|
| + // to get notification of new STHs, from this class
|
| + // and ProfileIOData.
|
| + std::set<net::ct::STHObserver*> sth_observers_;
|
| +
|
| const base::TimeTicks creation_time_;
|
|
|
| // Callback for updating data use prefs which needs to be initialized on UI
|
|
|