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_MAIN_AW_MAIN_DELEGATE_H_ | 5 #ifndef ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ |
6 #define ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ | 6 #define ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ |
7 | 7 |
8 #include "android_webview/browser/jni_dependency_factory.h" | 8 #include "android_webview/browser/jni_dependency_factory.h" |
9 #include "android_webview/common/aw_content_client.h" | 9 #include "android_webview/common/aw_content_client.h" |
| 10 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "content/public/app/content_main_delegate.h" | 12 #include "content/public/app/content_main_delegate.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 class BrowserMainRunner; | 15 class BrowserMainRunner; |
15 } | 16 } |
16 | 17 |
17 namespace android_webview { | 18 namespace android_webview { |
18 | 19 |
19 class AwContentBrowserClient; | 20 class AwContentBrowserClient; |
(...skipping 14 matching lines...) Expand all Loading... |
34 virtual void SandboxInitialized(const std::string& process_type) OVERRIDE; | 35 virtual void SandboxInitialized(const std::string& process_type) OVERRIDE; |
35 virtual int RunProcess( | 36 virtual int RunProcess( |
36 const std::string& process_type, | 37 const std::string& process_type, |
37 const content::MainFunctionParams& main_function_params) OVERRIDE; | 38 const content::MainFunctionParams& main_function_params) OVERRIDE; |
38 virtual void ProcessExiting(const std::string& process_type) OVERRIDE; | 39 virtual void ProcessExiting(const std::string& process_type) OVERRIDE; |
39 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; | 40 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; |
40 virtual content::ContentRendererClient* | 41 virtual content::ContentRendererClient* |
41 CreateContentRendererClient() OVERRIDE; | 42 CreateContentRendererClient() OVERRIDE; |
42 | 43 |
43 // JniDependencyFactory implementation. | 44 // JniDependencyFactory implementation. |
44 virtual AwQuotaManagerBridge* CreateAwQuotaManagerBridge( | 45 virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge( |
45 AwBrowserContext* browser_context) OVERRIDE; | 46 AwBrowserContext* browser_context) OVERRIDE; |
46 virtual content::GeolocationPermissionContext* CreateGeolocationPermission( | 47 virtual content::GeolocationPermissionContext* CreateGeolocationPermission( |
47 AwBrowserContext* browser_context) OVERRIDE; | 48 AwBrowserContext* browser_context) OVERRIDE; |
48 virtual content::WebContentsViewDelegate* CreateViewDelegate( | 49 virtual content::WebContentsViewDelegate* CreateViewDelegate( |
49 content::WebContents* web_contents) OVERRIDE; | 50 content::WebContents* web_contents) OVERRIDE; |
50 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() OVERRIDE; | 51 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() OVERRIDE; |
51 | 52 |
52 scoped_ptr<content::BrowserMainRunner> browser_runner_; | 53 scoped_ptr<content::BrowserMainRunner> browser_runner_; |
53 AwContentClient content_client_; | 54 AwContentClient content_client_; |
54 scoped_ptr<AwContentBrowserClient> content_browser_client_; | 55 scoped_ptr<AwContentBrowserClient> content_browser_client_; |
55 scoped_ptr<AwContentRendererClient> content_renderer_client_; | 56 scoped_ptr<AwContentRendererClient> content_renderer_client_; |
56 scoped_ptr<GpuMemoryBufferFactoryImpl> gpu_memory_buffer_factory_; | 57 scoped_ptr<GpuMemoryBufferFactoryImpl> gpu_memory_buffer_factory_; |
57 | 58 |
58 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate); | 59 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate); |
59 }; | 60 }; |
60 | 61 |
61 } // namespace android_webview | 62 } // namespace android_webview |
62 | 63 |
63 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ | 64 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ |
OLD | NEW |