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

Unified Diff: chrome/browser/io_thread.h

Issue 1845113003: Certificate Transparency: Start tracking logs' state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/component_updater/sth_set_component_installer.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.h
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
index fc27d9b337cfbd860cba165afa4e4088108874c7..50aea0354f9eabd19700b7d3b2ad0e537706b486 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -29,6 +29,8 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/browser_thread_delegate.h"
#include "net/base/network_change_notifier.h"
+#include "net/cert/ct_observer.h"
+#include "net/cert/ct_verifier.h"
#include "net/http/http_network_session.h"
class PrefProxyConfigTracker;
@@ -85,6 +87,12 @@ class URLRequestBackoffManager;
class URLRequestContext;
class URLRequestContextGetter;
class URLRequestJobFactory;
+
+namespace ct {
+class STHReporterRegistrar;
+class STHReporter;
+} // namespace ct
+
} // namespace net
namespace net_log {
@@ -191,6 +199,18 @@ class IOThread : public content::BrowserThreadDelegate {
// |system_cookie_store| and |system_channel_id_service| are shared
// between |proxy_script_fetcher_context| and |system_request_context|.
scoped_ptr<net::CookieStore> system_cookie_store;
+ // scoped_refptr<net::CookieStore> system_cookie_store;
+
+ // |cert_transparency_observer| is shared between
+ // |proxy_script_fetcher_context| and |system_request_context|. Since
+ // it may be performing URLRequests of its own it must be destroyed
+ // before both URLRequestContexts.
+ scoped_ptr<net::ct::CTObserver> cert_transparency_observer;
+ // Owned by the IOThread, used by ProfileIOData and the IOThread
+ // itself. Keeps track of all the STHReporter instances that need
+ // to get notification of new STHs until one is provided by
+ // RegisterWithSTHObserver, if at all.
+ net::ct::STHReporterRegistrar sth_observers_registrar;
#if defined(ENABLE_EXTENSIONS)
scoped_refptr<extensions::EventRouterForwarder>
extension_event_router_forwarder;
@@ -290,6 +310,8 @@ class IOThread : public content::BrowserThreadDelegate {
// a result of a field trial or a command line flag.
static bool ShouldEnableQuicForDataReductionProxy();
+ void RegisterWithSTHObserver(net::ct::STHReporter* reporter);
+
private:
// Map from name to value for all parameters associate with a field trial.
typedef std::map<std::string, std::string> VariationParameters;
« no previous file with comments | « chrome/browser/component_updater/sth_set_component_installer.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698