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

Unified Diff: android_webview/browser/net/aw_url_request_context_getter.h

Issue 294023015: Hook up request interceptors in AndroidWebView code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 6 years, 7 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: android_webview/browser/net/aw_url_request_context_getter.h
diff --git a/android_webview/browser/net/aw_url_request_context_getter.h b/android_webview/browser/net/aw_url_request_context_getter.h
index cef79e90b749f5a900ae9a7a7c9e6d3a7764973d..02eb74541d22afe8a064c77cd0bf52547ee9d9eb 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.h
+++ b/android_webview/browser/net/aw_url_request_context_getter.h
@@ -50,13 +50,15 @@ class AwURLRequestContextGetter : public net::URLRequestContextGetter {
friend class AwBrowserContext;
virtual ~AwURLRequestContextGetter();
- // Prior to GetURLRequestContext() being called, SetProtocolHandlers() is
- // called to hand over the ProtocolHandlers that GetURLRequestContext() will
- // later install into |job_factory_|. This ordering is enforced by having
- // AwBrowserContext::CreateRequestContext() call SetProtocolHandlers().
- // SetProtocolHandlers() is necessary because the ProtocolHandlers are created
+ // Prior to GetURLRequestContext() being called, this is called to hand over
+ // the objects that GetURLRequestContext() will later install into
+ // |job_factory_|. This ordering is enforced by having
+ // AwBrowserContext::CreateRequestContext() call this method.
+ // This method is necessary because the passed in objects are created
// on the UI thread while |job_factory_| must be created on the IO thread.
- void SetProtocolHandlers(content::ProtocolHandlerMap* protocol_handlers);
+ void SetHandlersAndInterceptors(
+ content::ProtocolHandlerMap* protocol_handlers,
+ content::URLRequestInterceptorScopedVector request_interceptors);
void InitializeURLRequestContext();
@@ -67,9 +69,10 @@ class AwURLRequestContextGetter : public net::URLRequestContextGetter {
scoped_ptr<net::URLRequestJobFactory> job_factory_;
scoped_ptr<net::HttpTransactionFactory> main_http_factory_;
- // ProtocolHandlers are stored here between SetProtocolHandlers() and the
- // first GetURLRequestContext() call.
+ // ProtocolHandlers and interceptors are stored here between
+ // SetHandlersAndInterceptors() and the first GetURLRequestContext() call.
content::ProtocolHandlerMap protocol_handlers_;
+ content::URLRequestInterceptorScopedVector request_interceptors_;
DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter);
};
« no previous file with comments | « android_webview/browser/aw_content_browser_client.cc ('k') | android_webview/browser/net/aw_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698