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

Side by Side Diff: android_webview/browser/net/init_native_callback.h

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

Powered by Google App Engine
This is Rietveld 408576698