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

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

Issue 2698143004: Add ongoing events to net-export log when logging starts (Closed)
Patch Set: Added/improved some comments Created 3 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | chrome/browser/io_thread.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // Allows overriding Globals in tests where IOThread::Init() and 217 // Allows overriding Globals in tests where IOThread::Init() and
218 // IOThread::CleanUp() are not called. This allows for injecting mocks into 218 // IOThread::CleanUp() are not called. This allows for injecting mocks into
219 // IOThread global objects. 219 // IOThread global objects.
220 void SetGlobalsForTesting(Globals* globals); 220 void SetGlobalsForTesting(Globals* globals);
221 221
222 net_log::ChromeNetLog* net_log(); 222 net_log::ChromeNetLog* net_log();
223 223
224 // Handles changing to On The Record mode, discarding confidential data. 224 // Handles changing to On The Record mode, discarding confidential data.
225 void ChangedToOnTheRecord(); 225 void ChangedToOnTheRecord();
226 226
227 // Returns a getter for the URLRequestContext. Only called on the UI thread. 227 // Returns a getter for the system URLRequestContext. Only called on the UI
228 // thread.
228 net::URLRequestContextGetter* system_url_request_context_getter(); 229 net::URLRequestContextGetter* system_url_request_context_getter();
229 230
231 // Returns a getter for the proxy script fetcher URLRequestContext. Only
232 // called on the UI thread.
233 net::URLRequestContextGetter* proxy_script_fetcher_context_getter();
eroman 2017/02/21 22:14:23 This is only used by NetExportUI. Instead of expo
wangyix1 2017/02/22 01:28:18 Done.
234
230 // Clears the host cache. Intended to be used to prevent exposing recently 235 // Clears the host cache. Intended to be used to prevent exposing recently
231 // visited sites on about:net-internals/#dns and about:dns pages. Must be 236 // visited sites on about:net-internals/#dns and about:dns pages. Must be
232 // called on the IO thread. If |host_filter| is not null, only hosts matched 237 // called on the IO thread. If |host_filter| is not null, only hosts matched
233 // by it are deleted from the cache. 238 // by it are deleted from the cache.
234 void ClearHostCache( 239 void ClearHostCache(
235 const base::Callback<bool(const std::string&)>& host_filter); 240 const base::Callback<bool(const std::string&)>& host_filter);
236 241
237 const net::HttpNetworkSession::Params& NetworkSessionParams() const; 242 const net::HttpNetworkSession::Params& NetworkSessionParams() const;
238 243
239 // Dynamically disables QUIC for HttpNetworkSessions owned by io_thread, and 244 // Dynamically disables QUIC for HttpNetworkSessions owned by io_thread, and
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 395
391 // These member variables are initialized by a task posted to the IO thread, 396 // These member variables are initialized by a task posted to the IO thread,
392 // which gets posted by calling certain member functions of IOThread. 397 // which gets posted by calling certain member functions of IOThread.
393 std::unique_ptr<net::ProxyConfigService> system_proxy_config_service_; 398 std::unique_ptr<net::ProxyConfigService> system_proxy_config_service_;
394 399
395 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 400 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
396 401
397 scoped_refptr<net::URLRequestContextGetter> 402 scoped_refptr<net::URLRequestContextGetter>
398 system_url_request_context_getter_; 403 system_url_request_context_getter_;
399 404
405 scoped_refptr<net::URLRequestContextGetter>
406 proxy_script_fetcher_context_getter_;
407
400 // True if QUIC is allowed by policy. 408 // True if QUIC is allowed by policy.
401 bool is_quic_allowed_by_policy_; 409 bool is_quic_allowed_by_policy_;
402 410
403 // True if HTTP/0.9 is allowed on non-default ports by policy. 411 // True if HTTP/0.9 is allowed on non-default ports by policy.
404 bool http_09_on_non_default_ports_enabled_; 412 bool http_09_on_non_default_ports_enabled_;
405 413
406 const base::TimeTicks creation_time_; 414 const base::TimeTicks creation_time_;
407 415
408 base::WeakPtrFactory<IOThread> weak_factory_; 416 base::WeakPtrFactory<IOThread> weak_factory_;
409 417
410 DISALLOW_COPY_AND_ASSIGN(IOThread); 418 DISALLOW_COPY_AND_ASSIGN(IOThread);
411 }; 419 };
412 420
413 #endif // CHROME_BROWSER_IO_THREAD_H_ 421 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | chrome/browser/io_thread.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698