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

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

Issue 10203002: Make URLRequestThrottlerManager a member of URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review. Created 8 years, 8 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 28 matching lines...) Expand all
39 class HttpTransactionFactory; 39 class HttpTransactionFactory;
40 class NetworkDelegate; 40 class NetworkDelegate;
41 class ServerBoundCertService; 41 class ServerBoundCertService;
42 class ProxyConfigService; 42 class ProxyConfigService;
43 class ProxyService; 43 class ProxyService;
44 class SdchManager; 44 class SdchManager;
45 class SSLConfigService; 45 class SSLConfigService;
46 class TransportSecurityState; 46 class TransportSecurityState;
47 class URLRequestContext; 47 class URLRequestContext;
48 class URLRequestContextGetter; 48 class URLRequestContextGetter;
49 class URLRequestThrottlerManager;
49 class URLSecurityManager; 50 class URLSecurityManager;
50 } // namespace net 51 } // namespace net
51 52
52 // Contains state associated with, initialized and cleaned up on, and 53 // Contains state associated with, initialized and cleaned up on, and
53 // primarily used on, the IO thread. 54 // primarily used on, the IO thread.
54 // 55 //
55 // If you are looking to interact with the IO thread (e.g. post tasks 56 // If you are looking to interact with the IO thread (e.g. post tasks
56 // to it or check if it is the current thread), see 57 // to it or check if it is the current thread), see
57 // content::BrowserThread. 58 // content::BrowserThread.
58 class IOThread : public content::BrowserThreadDelegate { 59 class IOThread : public content::BrowserThreadDelegate {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 scoped_refptr<net::URLRequestContext> system_request_context; 101 scoped_refptr<net::URLRequestContext> system_request_context;
101 SystemRequestContextLeakChecker system_request_context_leak_checker; 102 SystemRequestContextLeakChecker system_request_context_leak_checker;
102 // |system_cookie_store| and |system_server_bound_cert_service| are shared 103 // |system_cookie_store| and |system_server_bound_cert_service| are shared
103 // between |proxy_script_fetcher_context| and |system_request_context|. 104 // between |proxy_script_fetcher_context| and |system_request_context|.
104 scoped_refptr<net::CookieStore> system_cookie_store; 105 scoped_refptr<net::CookieStore> system_cookie_store;
105 scoped_ptr<net::ServerBoundCertService> system_server_bound_cert_service; 106 scoped_ptr<net::ServerBoundCertService> system_server_bound_cert_service;
106 scoped_refptr<ExtensionEventRouterForwarder> 107 scoped_refptr<ExtensionEventRouterForwarder>
107 extension_event_router_forwarder; 108 extension_event_router_forwarder;
108 scoped_ptr<chrome_browser_net::HttpPipeliningCompatibilityClient> 109 scoped_ptr<chrome_browser_net::HttpPipeliningCompatibilityClient>
109 http_pipelining_compatibility_client; 110 http_pipelining_compatibility_client;
111 scoped_ptr<net::URLRequestThrottlerManager> throttler_manager;
110 }; 112 };
111 113
112 // |net_log| must either outlive the IOThread or be NULL. 114 // |net_log| must either outlive the IOThread or be NULL.
113 IOThread(PrefService* local_state, 115 IOThread(PrefService* local_state,
114 ChromeNetLog* net_log, 116 ChromeNetLog* net_log,
115 ExtensionEventRouterForwarder* extension_event_router_forwarder); 117 ExtensionEventRouterForwarder* extension_event_router_forwarder);
116 118
117 virtual ~IOThread(); 119 virtual ~IOThread();
118 120
119 // Can only be called on the IO thread. 121 // Can only be called on the IO thread.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 system_url_request_context_getter_; 211 system_url_request_context_getter_;
210 212
211 net::SdchManager* sdch_manager_; 213 net::SdchManager* sdch_manager_;
212 214
213 base::WeakPtrFactory<IOThread> weak_factory_; 215 base::WeakPtrFactory<IOThread> weak_factory_;
214 216
215 DISALLOW_COPY_AND_ASSIGN(IOThread); 217 DISALLOW_COPY_AND_ASSIGN(IOThread);
216 }; 218 };
217 219
218 #endif // CHROME_BROWSER_IO_THREAD_H_ 220 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698