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 <memory> |
| 9 |
8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 | 11 |
11 namespace base { | 12 namespace base { |
12 class SingleThreadTaskRunner; | 13 class SingleThreadTaskRunner; |
13 } | 14 } |
14 | 15 |
15 namespace net { | 16 namespace net { |
16 class CookieStore; | 17 class CookieStore; |
17 class URLRequestInterceptor; | 18 class URLRequestInterceptor; |
18 } // namespace net | 19 } // namespace net |
19 | 20 |
20 namespace android_webview { | 21 namespace android_webview { |
21 class AwBrowserContext; | 22 class AwBrowserContext; |
22 | 23 |
23 // Gets the TaskRunner that the CookieStore must be called on. | 24 // Gets the TaskRunner that the CookieStore must be called on. |
24 scoped_refptr<base::SingleThreadTaskRunner> GetCookieStoreTaskRunner(); | 25 scoped_refptr<base::SingleThreadTaskRunner> GetCookieStoreTaskRunner(); |
25 | 26 |
26 // Gets a pointer to the CookieStore managed by the CookieManager. | 27 // Gets a pointer to the CookieStore managed by the CookieManager. |
27 // The CookieStore is never deleted. May only be called on the | 28 // The CookieStore is never deleted. May only be called on the |
28 // CookieStore's TaskRunner. | 29 // CookieStore's TaskRunner. |
29 net::CookieStore* GetCookieStore(); | 30 net::CookieStore* GetCookieStore(); |
30 | 31 |
31 // Called lazily when the job factory is being constructed. | 32 // Called lazily when the job factory is being constructed. |
32 scoped_ptr<net::URLRequestInterceptor> | 33 std::unique_ptr<net::URLRequestInterceptor> |
33 CreateAndroidAssetFileRequestInterceptor(); | 34 CreateAndroidAssetFileRequestInterceptor(); |
34 | 35 |
35 // Called lazily when the job factory is being constructed. | 36 // Called lazily when the job factory is being constructed. |
36 scoped_ptr<net::URLRequestInterceptor> | 37 std::unique_ptr<net::URLRequestInterceptor> |
37 CreateAndroidContentRequestInterceptor(); | 38 CreateAndroidContentRequestInterceptor(); |
38 | 39 |
39 } // namespace android_webview | 40 } // namespace android_webview |
40 | 41 |
41 #endif // ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_ | 42 #endif // ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_ |
OLD | NEW |