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

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

Issue 17127002: Correctly integrate StoragePartition into TestingProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments. merge to ToT. Murder a DB thread and more TestBrowserThreads. Created 7 years, 5 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 ChromeNetLog* net_log, 179 ChromeNetLog* net_log,
180 extensions::EventRouterForwarder* extension_event_router_forwarder); 180 extensions::EventRouterForwarder* extension_event_router_forwarder);
181 181
182 virtual ~IOThread(); 182 virtual ~IOThread();
183 183
184 static void RegisterPrefs(PrefRegistrySimple* registry); 184 static void RegisterPrefs(PrefRegistrySimple* registry);
185 185
186 // Can only be called on the IO thread. 186 // Can only be called on the IO thread.
187 Globals* globals(); 187 Globals* globals();
188 188
189 // Allows overriding Globals in tests where IOThread::Init() and
190 // IOThread::CleanUp() are not called. This allows for injecting mocks into
191 // IOThread global objects.
192 void SetGlobalsForTesting(Globals* globals);
193
189 ChromeNetLog* net_log(); 194 ChromeNetLog* net_log();
190 195
191 // Handles changing to On The Record mode, discarding confidential data. 196 // Handles changing to On The Record mode, discarding confidential data.
192 void ChangedToOnTheRecord(); 197 void ChangedToOnTheRecord();
193 198
194 // Returns a getter for the URLRequestContext. Only called on the UI thread. 199 // Returns a getter for the URLRequestContext. Only called on the UI thread.
195 net::URLRequestContextGetter* system_url_request_context_getter(); 200 net::URLRequestContextGetter* system_url_request_context_getter();
196 201
197 // Clears the host cache. Intended to be used to prevent exposing recently 202 // Clears the host cache. Intended to be used to prevent exposing recently
198 // visited sites on about:net-internals/#dns and about:dns pages. Must be 203 // visited sites on about:net-internals/#dns and about:dns pages. Must be
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 312
308 // True if SPDY is disabled by policy. 313 // True if SPDY is disabled by policy.
309 bool is_spdy_disabled_by_policy_; 314 bool is_spdy_disabled_by_policy_;
310 315
311 base::WeakPtrFactory<IOThread> weak_factory_; 316 base::WeakPtrFactory<IOThread> weak_factory_;
312 317
313 DISALLOW_COPY_AND_ASSIGN(IOThread); 318 DISALLOW_COPY_AND_ASSIGN(IOThread);
314 }; 319 };
315 320
316 #endif // CHROME_BROWSER_IO_THREAD_H_ 321 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698