OLD | NEW |
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 "base/logging.h" | 9 #include "net/url_request/url_request_interceptor.h" |
10 | 10 |
11 namespace android_webview { | 11 namespace android_webview { |
12 class AwURLRequestJobFactory; | |
13 | 12 |
14 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 13 scoped_ptr<net::URLRequestInterceptor> |
15 CreateAndroidAssetFileProtocolHandler() { | 14 CreateAndroidAssetFileRequestInterceptor() { |
16 return CreateAssetFileProtocolHandler(); | 15 return CreateAssetFileRequestInterceptor(); |
17 } | 16 } |
18 | 17 |
19 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 18 scoped_ptr<net::URLRequestInterceptor> |
20 CreateAndroidContentProtocolHandler() { | 19 CreateAndroidContentRequestInterceptor() { |
21 return CreateContentSchemeProtocolHandler(); | 20 return CreateContentSchemeRequestInterceptor(); |
22 } | 21 } |
23 | 22 |
24 } // namespace android_webview | 23 } // namespace android_webview |
OLD | NEW |