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

Side by Side Diff: content/browser/content_browser_client.h

Issue 7745048: Allow content to get the system request context, a request context not tied to any profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 // Returns the default download directory. 281 // Returns the default download directory.
282 // This can be called on any thread. 282 // This can be called on any thread.
283 virtual FilePath GetDefaultDownloadDirectory() = 0; 283 virtual FilePath GetDefaultDownloadDirectory() = 0;
284 284
285 // Returns the "default" request context. There is no such thing in the world 285 // Returns the "default" request context. There is no such thing in the world
286 // of multiple profiles, and all calls to this need to be removed. 286 // of multiple profiles, and all calls to this need to be removed.
287 virtual net::URLRequestContextGetter* 287 virtual net::URLRequestContextGetter*
288 GetDefaultRequestContextDeprecatedCrBug64339() = 0; 288 GetDefaultRequestContextDeprecatedCrBug64339() = 0;
289 289
290 // Returns the system request context, a context tied to no browser context.
291 // This is called on the UI thread.
292 virtual net::URLRequestContextGetter* GetSystemRequestContext() = 0;
293
290 #if defined(OS_POSIX) && !defined(OS_MACOSX) 294 #if defined(OS_POSIX) && !defined(OS_MACOSX)
291 // Can return an optional fd for crash handling, otherwise returns -1. 295 // Can return an optional fd for crash handling, otherwise returns -1.
292 virtual int GetCrashSignalFD(const std::string& process_type) = 0; 296 virtual int GetCrashSignalFD(const std::string& process_type) = 0;
293 #endif 297 #endif
294 298
295 #if defined(OS_WIN) 299 #if defined(OS_WIN)
296 // Returns the name of the dll that contains cursors and other resources. 300 // Returns the name of the dll that contains cursors and other resources.
297 virtual const wchar_t* GetResourceDllName() = 0; 301 virtual const wchar_t* GetResourceDllName() = 0;
298 #endif 302 #endif
299 303
300 #if defined(USE_NSS) 304 #if defined(USE_NSS)
301 // Return a delegate to authenticate and unlock |module|. 305 // Return a delegate to authenticate and unlock |module|.
302 // This is called on a worker thread. 306 // This is called on a worker thread.
303 virtual 307 virtual
304 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 308 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
305 const GURL& url) = 0; 309 const GURL& url) = 0;
306 #endif 310 #endif
307 }; 311 };
308 312
309 } // namespace content 313 } // namespace content
310 314
311 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ 315 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/mock_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698