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 "android_webview/native/aw_browser_dependency_factory.h" | 8 #include "android_webview/native/aw_browser_dependency_factory.h" |
9 | |
10 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 10 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | |
13 | 11 |
14 namespace net { | 12 namespace net { |
15 class URLRequestContextGetter; | 13 class URLRequestContextGetter; |
16 } | 14 } |
17 | 15 |
18 namespace android_webview { | 16 namespace android_webview { |
19 | 17 |
20 class AwNetworkDelegate; | 18 class AwNetworkDelegate; |
21 class AwURLRequestJobFactory; | 19 class AwURLRequestJobFactory; |
22 | 20 |
23 class AwBrowserDependencyFactoryImpl : public AwBrowserDependencyFactory { | 21 class AwBrowserDependencyFactoryImpl : public AwBrowserDependencyFactory { |
24 public: | 22 public: |
25 AwBrowserDependencyFactoryImpl(); | 23 AwBrowserDependencyFactoryImpl(); |
26 ~AwBrowserDependencyFactoryImpl() override; | 24 ~AwBrowserDependencyFactoryImpl() override; |
27 | 25 |
28 // Sets this class as the singleton instance. | 26 // Sets this class as the singleton instance. |
29 static void InstallInstance(); | 27 static void InstallInstance(); |
30 | 28 |
31 // AwBrowserDependencyFactory | 29 // AwBrowserDependencyFactory |
32 content::BrowserContext* GetBrowserContext() override; | 30 content::BrowserContext* GetBrowserContext() override; |
33 content::WebContents* CreateWebContents() override; | 31 content::WebContents* CreateWebContents() override; |
34 | 32 |
35 private: | 33 private: |
36 DISALLOW_COPY_AND_ASSIGN(AwBrowserDependencyFactoryImpl); | 34 DISALLOW_COPY_AND_ASSIGN(AwBrowserDependencyFactoryImpl); |
37 }; | 35 }; |
38 | 36 |
39 } // namespace android_webview | 37 } // namespace android_webview |
40 | 38 |
41 #endif // ANDROID_WEBVIEW_LIB_BROWSER_DELEGATE_IMPL_H_ | 39 #endif // ANDROID_WEBVIEW_LIB_BROWSER_DELEGATE_IMPL_H_ |
OLD | NEW |