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/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 URLRequestContext; | 12 class URLRequestContext; |
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 network URLRequestContext has been | 17 // This is called on the IO thread when the network URLRequestContext has been |
19 // initialized but not used. Note that the UI thread is blocked during this | 18 // initialized but not used. Note that the UI thread is blocked during this |
20 // call. | 19 // call. |
21 scoped_ptr<net::URLRequestJobFactory> CreateAndroidJobFactoryAndCookieMonster( | 20 void CreateCookieMonster(net::URLRequestContext* context); |
22 net::URLRequestContext* context, | 21 |
23 scoped_ptr<AwURLRequestJobFactory> job_factory); | 22 // This is called on the IO thread when the network URLRequestContext has been |
| 23 // initialized but not used. |
| 24 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 25 CreateAndroidAssetFileProtocolHandler(); |
| 26 |
| 27 // This is called on the IO thread when the network URLRequestContext has been |
| 28 // initialized but not used. |
| 29 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 30 CreateAndroidContentProtocolHandler(); |
24 | 31 |
25 } // namespace android_webview | 32 } // namespace android_webview |
26 | 33 |
27 #endif // ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_ | 34 #endif // ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_ |
OLD | NEW |