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 #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/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "net/url_request/url_request_job_factory.h" | |
11 | 10 |
12 namespace net { | 11 namespace net { |
13 class CookieStore; | 12 class CookieStore; |
| 13 class URLRequestInterceptor; |
14 } // namespace net | 14 } // namespace net |
15 | 15 |
16 namespace android_webview { | 16 namespace android_webview { |
17 class AwBrowserContext; | 17 class AwBrowserContext; |
18 | 18 |
19 // Called when the CookieMonster needs to be created. | 19 // Called when the CookieMonster needs to be created. |
20 scoped_refptr<net::CookieStore> CreateCookieStore( | 20 scoped_refptr<net::CookieStore> CreateCookieStore( |
21 AwBrowserContext* browser_context); | 21 AwBrowserContext* browser_context); |
22 | 22 |
23 // Called lazily when the job factory is being constructed. | 23 // Called lazily when the job factory is being constructed. |
24 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 24 scoped_ptr<net::URLRequestInterceptor> |
25 CreateAndroidAssetFileProtocolHandler(); | 25 CreateAndroidAssetFileRequestInterceptor(); |
26 | 26 |
27 // Called lazily when the job factory is being constructed. | 27 // Called lazily when the job factory is being constructed. |
28 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 28 scoped_ptr<net::URLRequestInterceptor> |
29 CreateAndroidContentProtocolHandler(); | 29 CreateAndroidContentRequestInterceptor(); |
30 | 30 |
31 } // namespace android_webview | 31 } // namespace android_webview |
32 | 32 |
33 #endif // ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_ | 33 #endif // ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_ |
OLD | NEW |