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

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

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 years, 8 months 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>
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_
OLDNEW
« no previous file with comments | « android_webview/browser/net/aw_web_resource_response.h ('k') | android_webview/browser/net/input_stream_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698