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

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

Issue 12377051: [android_webview] Don't intercept resource and asset URLRequests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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/init_native_callback.h
diff --git a/android_webview/browser/net/init_native_callback.h b/android_webview/browser/net/init_native_callback.h
index dbd98329e2c1bc17ccf0d669ca5bdec6b06fe479..b2cbec8055c9836c560ae08ba1435eea14e17034 100644
--- a/android_webview/browser/net/init_native_callback.h
+++ b/android_webview/browser/net/init_native_callback.h
@@ -6,23 +6,25 @@
#define ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_
#include "base/memory/scoped_ptr.h"
+#include "net/url_request/url_request_job_factory.h"
namespace net {
class CookieMonster;
-class URLRequestJobFactory;
} // namespace net
namespace android_webview {
-class AwURLRequestJobFactory;
// This is called on the IO thread when the CookieMonster has been created.
// Note that the UI thread is blocked during this call.
void DidCreateCookieMonster(net::CookieMonster* cookie_monster);
-// Called lazily when the job factory is being constructed; allows android
-// webview specific request factories to be added to the chain.
-scoped_ptr<net::URLRequestJobFactory> CreateAndroidJobFactory(
- scoped_ptr<AwURLRequestJobFactory> job_factory);
+// Called lazily when the job factory is being constructed.
+scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
+ CreateAndroidAssetFileProtocolHandler();
+
+// Called lazily when the job factory is being constructed.
+scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
+ CreateAndroidContentProtocolHandler();
} // namespace android_webview

Powered by Google App Engine
This is Rietveld 408576698