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

Unified 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: Merging with master Created 4 years, 7 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
Index: chrome/browser/io_thread.h
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
index 2f1103d4f66ac6d56d538f8f8f33f60848b9f7b1..d6fff0794518dc406b3cebaecd4c2b381b067e16 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -44,6 +44,10 @@ class ExternalDataUseObserver;
}
#endif // BUILDFLAG(ANDROID_JAVA_UI)
+namespace certificate_transparency {
+class TreeStateTracker;
+}
+
namespace chrome_browser_net {
class DnsProbeService;
}
@@ -81,6 +85,11 @@ class URLRequestBackoffManager;
class URLRequestContext;
class URLRequestContextGetter;
class URLRequestJobFactory;
+
+namespace ct {
+class STHObserver;
+}
+
} // namespace net
namespace net_log {
@@ -223,6 +232,12 @@ class IOThread : public content::BrowserThreadDelegate {
// Returns the callback for updating data use prefs.
const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder();
+ // Registers the |observer| for new STH notifications.
+ void RegisterSTHObserver(net::ct::STHObserver* observer);
+
+ // Un-registers the |observer|.
+ void UnregisterSTHObserver(net::ct::STHObserver* observer);
+
private:
// Provide SystemURLRequestContextGetter with access to
// InitSystemRequestContext().
@@ -305,6 +320,8 @@ class IOThread : public content::BrowserThreadDelegate {
// Observer that logs network changes to the ChromeNetLog.
std::unique_ptr<net::LoggingNetworkChangeObserver> network_change_observer_;
+ std::unique_ptr<certificate_transparency::TreeStateTracker> ct_tree_tracker_;
+
BooleanPrefMember system_enable_referrers_;
BooleanPrefMember dns_client_enabled_;

Powered by Google App Engine
This is Rietveld 408576698