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/ref_counted.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 const std::string& process_type, | 38 const std::string& process_type, |
39 const content::MainFunctionParams& main_function_params) OVERRIDE; | 39 const content::MainFunctionParams& main_function_params) OVERRIDE; |
40 virtual void ProcessExiting(const std::string& process_type) OVERRIDE; | 40 virtual void ProcessExiting(const std::string& process_type) OVERRIDE; |
41 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; | 41 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; |
42 virtual content::ContentRendererClient* | 42 virtual content::ContentRendererClient* |
43 CreateContentRendererClient() OVERRIDE; | 43 CreateContentRendererClient() OVERRIDE; |
44 | 44 |
45 // JniDependencyFactory implementation. | 45 // JniDependencyFactory implementation. |
46 virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge( | 46 virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge( |
47 AwBrowserContext* browser_context) OVERRIDE; | 47 AwBrowserContext* browser_context) OVERRIDE; |
48 virtual content::GeolocationPermissionContext* CreateGeolocationPermission( | |
49 AwBrowserContext* browser_context) OVERRIDE; | |
50 virtual content::WebContentsViewDelegate* CreateViewDelegate( | 48 virtual content::WebContentsViewDelegate* CreateViewDelegate( |
51 content::WebContents* web_contents) OVERRIDE; | 49 content::WebContents* web_contents) OVERRIDE; |
52 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() OVERRIDE; | 50 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() OVERRIDE; |
53 #if defined(VIDEO_HOLE) | 51 #if defined(VIDEO_HOLE) |
54 virtual content::ExternalVideoSurfaceContainer* | 52 virtual content::ExternalVideoSurfaceContainer* |
55 CreateExternalVideoSurfaceContainer( | 53 CreateExternalVideoSurfaceContainer( |
56 content::WebContents* web_contents) OVERRIDE; | 54 content::WebContents* web_contents) OVERRIDE; |
57 #endif | 55 #endif |
58 | 56 |
59 scoped_ptr<content::BrowserMainRunner> browser_runner_; | 57 scoped_ptr<content::BrowserMainRunner> browser_runner_; |
60 AwContentClient content_client_; | 58 AwContentClient content_client_; |
61 scoped_ptr<AwContentBrowserClient> content_browser_client_; | 59 scoped_ptr<AwContentBrowserClient> content_browser_client_; |
62 scoped_ptr<AwContentRendererClient> content_renderer_client_; | 60 scoped_ptr<AwContentRendererClient> content_renderer_client_; |
63 scoped_ptr<GpuMemoryBufferFactoryImpl> gpu_memory_buffer_factory_; | 61 scoped_ptr<GpuMemoryBufferFactoryImpl> gpu_memory_buffer_factory_; |
64 | 62 |
65 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate); | 63 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate); |
66 }; | 64 }; |
67 | 65 |
68 } // namespace android_webview | 66 } // namespace android_webview |
69 | 67 |
70 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ | 68 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ |
OLD | NEW |