Chromium Code Reviews| Index: chrome/browser/android/android_protocol_adapter.h |
| diff --git a/chrome/browser/android/android_protocol_adapter.h b/chrome/browser/android/android_protocol_adapter.h |
| index 3cf11e801fdb5d48da38246fcc553d7b6b658bcd..eb41dcda759de6f219e2000f8989a82d27429143 100644 |
| --- a/chrome/browser/android/android_protocol_adapter.h |
| +++ b/chrome/browser/android/android_protocol_adapter.h |
| @@ -9,13 +9,31 @@ |
| #include "net/url_request/url_request.h" |
| +namespace net { |
| + |
| +class URLRequestContextGetter; |
| + |
| +} |
| + |
| +// This class adds support for Android WebView-specific protocol schemes: |
| +// |
| +// - "content:" scheme is used for accessing data from Android content |
| +// providers, see http://developer.android.com/guide/topics/providers/ |
| +// content-provider-basics.html#ContentURIs |
| +// |
| +// - "file:" scheme extension for accessing application assets and resources |
| +// (file:///android_asset/ and file:///android_res/), see |
| +// http://developer.android.com/reference/android/webkit/ |
| +// WebSettings.html#setAllowFileAccess(boolean) |
| +// |
| class AndroidProtocolAdapter { |
| public: |
| static net::URLRequest::ProtocolFactory Factory; |
| // Register the protocol factories for all supported Android protocol |
|
Sami
2012/08/28 11:10:50
Could update this comment to say "protocol factori
mnaganov (inactive)
2012/08/28 13:08:00
This would reveal implementation details. Changed
|
| // schemes. |
| - static bool RegisterProtocols(JNIEnv* env); |
| + static void RegisterProtocols( |
| + JNIEnv* env, net::URLRequestContextGetter* context_getter); |
| private: |
| DISALLOW_IMPLICIT_CONSTRUCTORS(AndroidProtocolAdapter); |