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

Side by Side Diff: android_webview/lib/aw_browser_dependency_factory_impl.h

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: base:::::: 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_LIB_BROWSER_DELEGATE_IMPL_H_ 5 #ifndef ANDROID_WEBVIEW_LIB_BROWSER_DELEGATE_IMPL_H_
6 #define ANDROID_WEBVIEW_LIB_BROWSER_DELEGATE_IMPL_H_ 6 #define ANDROID_WEBVIEW_LIB_BROWSER_DELEGATE_IMPL_H_
7 7
8 #include <memory>
boliu 2016/04/01 00:49:42 ditto
dcheng 2016/04/01 00:58:01 Done.
9
8 #include "android_webview/native/aw_browser_dependency_factory.h" 10 #include "android_webview/native/aw_browser_dependency_factory.h"
9
10 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 13
14 namespace net { 14 namespace net {
15 class URLRequestContextGetter; 15 class URLRequestContextGetter;
16 } 16 }
17 17
18 namespace android_webview { 18 namespace android_webview {
19 19
20 class AwNetworkDelegate; 20 class AwNetworkDelegate;
21 class AwURLRequestJobFactory; 21 class AwURLRequestJobFactory;
22 22
23 class AwBrowserDependencyFactoryImpl : public AwBrowserDependencyFactory { 23 class AwBrowserDependencyFactoryImpl : public AwBrowserDependencyFactory {
24 public: 24 public:
25 AwBrowserDependencyFactoryImpl(); 25 AwBrowserDependencyFactoryImpl();
26 ~AwBrowserDependencyFactoryImpl() override; 26 ~AwBrowserDependencyFactoryImpl() override;
27 27
28 // Sets this class as the singleton instance. 28 // Sets this class as the singleton instance.
29 static void InstallInstance(); 29 static void InstallInstance();
30 30
31 // AwBrowserDependencyFactory 31 // AwBrowserDependencyFactory
32 content::BrowserContext* GetBrowserContext() override; 32 content::BrowserContext* GetBrowserContext() override;
33 content::WebContents* CreateWebContents() override; 33 content::WebContents* CreateWebContents() override;
34 34
35 private: 35 private:
36 DISALLOW_COPY_AND_ASSIGN(AwBrowserDependencyFactoryImpl); 36 DISALLOW_COPY_AND_ASSIGN(AwBrowserDependencyFactoryImpl);
37 }; 37 };
38 38
39 } // namespace android_webview 39 } // namespace android_webview
40 40
41 #endif // ANDROID_WEBVIEW_LIB_BROWSER_DELEGATE_IMPL_H_ 41 #endif // ANDROID_WEBVIEW_LIB_BROWSER_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698