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

Side by Side Diff: android_webview/native/net_init_native_callback.cc

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
« no previous file with comments | « android_webview/native/intercepted_request_data_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "android_webview/browser/net/init_native_callback.h" 5 #include "android_webview/browser/net/init_native_callback.h"
6 6
7 #include "android_webview/browser/net/aw_url_request_job_factory.h" 7 #include "android_webview/browser/net/aw_url_request_job_factory.h"
8 #include "android_webview/native/android_protocol_handler.h" 8 #include "android_webview/native/android_protocol_handler.h"
9 #include "android_webview/native/cookie_manager.h" 9 #include "android_webview/native/cookie_manager.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "net/url_request/url_request_job_factory.h"
12 11
13 namespace android_webview { 12 namespace android_webview {
14 class AwURLRequestJobFactory; 13 class AwURLRequestJobFactory;
15 14
16 void DidCreateCookieMonster(net::CookieMonster* cookie_monster) { 15 void DidCreateCookieMonster(net::CookieMonster* cookie_monster) {
17 DCHECK(cookie_monster); 16 DCHECK(cookie_monster);
18 SetCookieMonsterOnNetworkStackInit(cookie_monster); 17 SetCookieMonsterOnNetworkStackInit(cookie_monster);
19 } 18 }
20 19
21 scoped_ptr<net::URLRequestJobFactory> CreateAndroidJobFactory( 20 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
22 scoped_ptr<AwURLRequestJobFactory> job_factory) { 21 CreateAndroidAssetFileProtocolHandler() {
23 return CreateAndroidRequestJobFactory(job_factory.Pass()); 22 return CreateAssetFileProtocolHandler();
23 }
24
25 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
26 CreateAndroidContentProtocolHandler() {
27 return CreateContentSchemeProtocolHandler();
24 } 28 }
25 29
26 } // namespace android_webview 30 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/intercepted_request_data_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698