Chromium Code Reviews| 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_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_ |
| OLD | NEW |