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

Unified Diff: trunk/src/content/public/browser/content_browser_client.h

Issue 23551005: Revert 219709 "Remove the Extensions URLRequestContext." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/content/public/browser/content_browser_client.h
===================================================================
--- trunk/src/content/public/browser/content_browser_client.h (revision 219785)
+++ trunk/src/content/public/browser/content_browser_client.h (working copy)
@@ -22,7 +22,6 @@
#include "content/public/common/window_container_type.h"
#include "net/base/mime_util.h"
#include "net/cookies/canonical_cookie.h"
-#include "net/cookies/cookie_store.h"
#include "net/url_request/url_request_job_factory.h"
#include "third_party/WebKit/public/web/WebNotificationPresenter.h"
#include "ui/base/window_open_disposition.h"
@@ -54,12 +53,12 @@
namespace net {
class CookieOptions;
-class CookieStore;
class HttpNetworkSession;
class NetLog;
class SSLCertRequestInfo;
class SSLInfo;
class URLRequest;
+class URLRequestContext;
class URLRequestContextGetter;
class X509Certificate;
}
@@ -329,6 +328,13 @@
ResourceContext* context,
const std::vector<std::pair<int, int> >& render_views);
+ // Allow the embedder to override the request context based on the URL for
+ // certain operations, like cookie access. Returns NULL to indicate the
+ // regular request context should be used.
+ // This is called on the IO thread.
+ virtual net::URLRequestContext* OverrideRequestContextForURL(
+ const GURL& url, ResourceContext* context);
+
// Allow the embedder to specify a string version of the storage partition
// config with a site.
virtual std::string GetStoragePartitionIdForSite(
« no previous file with comments | « trunk/src/content/public/browser/browser_context.h ('k') | trunk/src/content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698