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

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: 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 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 26 matching lines...) Expand all
37 class SystemURLRequestContextGetter; 37 class SystemURLRequestContextGetter;
38 38
39 #if BUILDFLAG(ANDROID_JAVA_UI) 39 #if BUILDFLAG(ANDROID_JAVA_UI)
40 namespace chrome { 40 namespace chrome {
41 namespace android { 41 namespace android {
42 class ExternalDataUseObserver; 42 class ExternalDataUseObserver;
43 } 43 }
44 } 44 }
45 #endif // BUILDFLAG(ANDROID_JAVA_UI) 45 #endif // BUILDFLAG(ANDROID_JAVA_UI)
46 46
47 namespace certificate_transparency {
48 class TreeStateTracker;
49 }
50
47 namespace chrome_browser_net { 51 namespace chrome_browser_net {
48 class DnsProbeService; 52 class DnsProbeService;
49 } 53 }
50 54
51 namespace data_usage { 55 namespace data_usage {
52 class DataUseAggregator; 56 class DataUseAggregator;
53 } 57 }
54 58
55 namespace extensions { 59 namespace extensions {
56 class EventRouterForwarder; 60 class EventRouterForwarder;
(...skipping 17 matching lines...) Expand all
74 class NetworkDelegate; 78 class NetworkDelegate;
75 class NetworkQualityEstimator; 79 class NetworkQualityEstimator;
76 class ProxyConfigService; 80 class ProxyConfigService;
77 class ProxyService; 81 class ProxyService;
78 class SSLConfigService; 82 class SSLConfigService;
79 class TransportSecurityState; 83 class TransportSecurityState;
80 class URLRequestBackoffManager; 84 class URLRequestBackoffManager;
81 class URLRequestContext; 85 class URLRequestContext;
82 class URLRequestContextGetter; 86 class URLRequestContextGetter;
83 class URLRequestJobFactory; 87 class URLRequestJobFactory;
88
89 namespace ct {
90 class STHObserver;
91 }
92
84 } // namespace net 93 } // namespace net
85 94
86 namespace net_log { 95 namespace net_log {
87 class ChromeNetLog; 96 class ChromeNetLog;
88 } 97 }
89 98
90 namespace policy { 99 namespace policy {
91 class PolicyService; 100 class PolicyService;
92 } // namespace policy 101 } // namespace policy
93 102
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // called on the IO thread. 225 // called on the IO thread.
217 void ClearHostCache(); 226 void ClearHostCache();
218 227
219 const net::HttpNetworkSession::Params& NetworkSessionParams() const; 228 const net::HttpNetworkSession::Params& NetworkSessionParams() const;
220 229
221 base::TimeTicks creation_time() const; 230 base::TimeTicks creation_time() const;
222 231
223 // Returns the callback for updating data use prefs. 232 // Returns the callback for updating data use prefs.
224 const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder(); 233 const metrics::UpdateUsagePrefCallbackType& GetMetricsDataUseForwarder();
225 234
235 // Registers the |observer| for new STH notifications.
236 void RegisterSTHObserver(net::ct::STHObserver* observer);
237
238 // Un-registers the |observer|.
239 void UnregisterSTHObserver(net::ct::STHObserver* observer);
240
226 private: 241 private:
227 // Provide SystemURLRequestContextGetter with access to 242 // Provide SystemURLRequestContextGetter with access to
228 // InitSystemRequestContext(). 243 // InitSystemRequestContext().
229 friend class SystemURLRequestContextGetter; 244 friend class SystemURLRequestContextGetter;
230 245
231 friend class test::IOThreadPeer; 246 friend class test::IOThreadPeer;
232 247
233 // BrowserThreadDelegate implementation, runs on the IO thread. 248 // BrowserThreadDelegate implementation, runs on the IO thread.
234 // This handles initialization and destruction of state that must 249 // This handles initialization and destruction of state that must
235 // live on the IO thread. 250 // live on the IO thread.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // These member variables are initialized in Init() and do not change for the 313 // These member variables are initialized in Init() and do not change for the
299 // lifetime of the IO thread. 314 // lifetime of the IO thread.
300 315
301 Globals* globals_; 316 Globals* globals_;
302 317
303 net::HttpNetworkSession::Params params_; 318 net::HttpNetworkSession::Params params_;
304 319
305 // Observer that logs network changes to the ChromeNetLog. 320 // Observer that logs network changes to the ChromeNetLog.
306 std::unique_ptr<net::LoggingNetworkChangeObserver> network_change_observer_; 321 std::unique_ptr<net::LoggingNetworkChangeObserver> network_change_observer_;
307 322
323 std::unique_ptr<certificate_transparency::TreeStateTracker> ct_tree_tracker_;
324
308 BooleanPrefMember system_enable_referrers_; 325 BooleanPrefMember system_enable_referrers_;
309 326
310 BooleanPrefMember dns_client_enabled_; 327 BooleanPrefMember dns_client_enabled_;
311 328
312 BooleanPrefMember quick_check_enabled_; 329 BooleanPrefMember quick_check_enabled_;
313 330
314 // Store HTTP Auth-related policies in this thread. 331 // Store HTTP Auth-related policies in this thread.
315 // TODO(aberent) Make the list of auth schemes a PrefMember, so that the 332 // TODO(aberent) Make the list of auth schemes a PrefMember, so that the
316 // policy can change after startup (https://crbug/549273). 333 // policy can change after startup (https://crbug/549273).
317 std::string auth_schemes_; 334 std::string auth_schemes_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // Callback for updating data use prefs which needs to be initialized on UI 372 // Callback for updating data use prefs which needs to be initialized on UI
356 // thread and passed to |ChromeNetworkDelegate|. 373 // thread and passed to |ChromeNetworkDelegate|.
357 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_; 374 metrics::UpdateUsagePrefCallbackType metrics_data_use_forwarder_;
358 375
359 base::WeakPtrFactory<IOThread> weak_factory_; 376 base::WeakPtrFactory<IOThread> weak_factory_;
360 377
361 DISALLOW_COPY_AND_ASSIGN(IOThread); 378 DISALLOW_COPY_AND_ASSIGN(IOThread);
362 }; 379 };
363 380
364 #endif // CHROME_BROWSER_IO_THREAD_H_ 381 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698