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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_
6 #define ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_ 6 #define ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "net/url_request/url_request_job_factory.h"
9 10
10 namespace net { 11 namespace net {
11 class CookieMonster; 12 class CookieMonster;
12 class URLRequestJobFactory;
13 } // namespace net 13 } // namespace net
14 14
15 namespace android_webview { 15 namespace android_webview {
16 class AwURLRequestJobFactory;
17 16
18 // This is called on the IO thread when the CookieMonster has been created. 17 // This is called on the IO thread when the CookieMonster has been created.
19 // Note that the UI thread is blocked during this call. 18 // Note that the UI thread is blocked during this call.
20 void DidCreateCookieMonster(net::CookieMonster* cookie_monster); 19 void DidCreateCookieMonster(net::CookieMonster* cookie_monster);
21 20
22 // Called lazily when the job factory is being constructed; allows android 21 // Called lazily when the job factory is being constructed.
23 // webview specific request factories to be added to the chain. 22 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
24 scoped_ptr<net::URLRequestJobFactory> CreateAndroidJobFactory( 23 CreateAndroidAssetFileProtocolHandler();
25 scoped_ptr<AwURLRequestJobFactory> job_factory); 24
25 // Called lazily when the job factory is being constructed.
26 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
27 CreateAndroidContentProtocolHandler();
26 28
27 } // namespace android_webview 29 } // namespace android_webview
28 30
29 #endif // ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_ 31 #endif // ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698