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

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

Issue 1562593002: Fix potential crashes in NetworkHandler code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test
Patch Set: Created 4 years, 11 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 // Returns a getter for the URLRequestContext. Only called on the UI thread. 272 // Returns a getter for the URLRequestContext. Only called on the UI thread.
273 net::URLRequestContextGetter* system_url_request_context_getter(); 273 net::URLRequestContextGetter* system_url_request_context_getter();
274 274
275 // Clears the host cache. Intended to be used to prevent exposing recently 275 // Clears the host cache. Intended to be used to prevent exposing recently
276 // visited sites on about:net-internals/#dns and about:dns pages. Must be 276 // visited sites on about:net-internals/#dns and about:dns pages. Must be
277 // called on the IO thread. 277 // called on the IO thread.
278 void ClearHostCache(); 278 void ClearHostCache();
279 279
280 void InitializeNetworkSessionParams(net::HttpNetworkSession::Params* params); 280 void InitializeNetworkSessionParams(net::HttpNetworkSession::Params* params);
281 281
282 // Resets pref_proxy_config_tracker_. Required on Chrome OS to ensure that
283 // ProxyConfigServiceImpl is destroyed before NetworkHandler. Must only
284 // be called during shutdown.
285 void ShutdownPrefProxyConfigTracker();
286
282 base::TimeTicks creation_time() const; 287 base::TimeTicks creation_time() const;
283 288
284 // Returns true if QUIC should be enabled for data reduction proxy, either as 289 // Returns true if QUIC should be enabled for data reduction proxy, either as
285 // a result of a field trial or a command line flag. 290 // a result of a field trial or a command line flag.
286 static bool ShouldEnableQuicForDataReductionProxy(); 291 static bool ShouldEnableQuicForDataReductionProxy();
287 292
288 private: 293 private:
289 // Map from name to value for all parameters associate with a field trial. 294 // Map from name to value for all parameters associate with a field trial.
290 typedef std::map<std::string, std::string> VariationParameters; 295 typedef std::map<std::string, std::string> VariationParameters;
291 296
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 bool is_quic_allowed_by_policy_; 575 bool is_quic_allowed_by_policy_;
571 576
572 const base::TimeTicks creation_time_; 577 const base::TimeTicks creation_time_;
573 578
574 base::WeakPtrFactory<IOThread> weak_factory_; 579 base::WeakPtrFactory<IOThread> weak_factory_;
575 580
576 DISALLOW_COPY_AND_ASSIGN(IOThread); 581 DISALLOW_COPY_AND_ASSIGN(IOThread);
577 }; 582 };
578 583
579 #endif // CHROME_BROWSER_IO_THREAD_H_ 584 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698