| 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" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/public/app/content_main_delegate.h" | 12 #include "content/public/app/content_main_delegate.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 class BrowserMainRunner; | 15 class BrowserMainRunner; |
| 16 class ExternalVideoSurfaceContainel; | 16 class ExternalVideoSurfaceContainel; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace android_webview { | 19 namespace android_webview { |
| 20 | 20 |
| 21 class AwContentBrowserClient; | 21 class AwContentBrowserClient; |
| 22 class AwContentRendererClient; | 22 class AwContentRendererClient; |
| 23 class GpuMemoryBufferFactoryImpl; | |
| 24 | 23 |
| 25 // Android WebView implementation of ContentMainDelegate. | 24 // Android WebView implementation of ContentMainDelegate. |
| 26 class AwMainDelegate : public content::ContentMainDelegate, | 25 class AwMainDelegate : public content::ContentMainDelegate, |
| 27 public JniDependencyFactory { | 26 public JniDependencyFactory { |
| 28 public: | 27 public: |
| 29 AwMainDelegate(); | 28 AwMainDelegate(); |
| 30 virtual ~AwMainDelegate(); | 29 virtual ~AwMainDelegate(); |
| 31 | 30 |
| 32 private: | 31 private: |
| 33 // content::ContentMainDelegate implementation: | 32 // content::ContentMainDelegate implementation: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 51 #if defined(VIDEO_HOLE) | 50 #if defined(VIDEO_HOLE) |
| 52 virtual content::ExternalVideoSurfaceContainer* | 51 virtual content::ExternalVideoSurfaceContainer* |
| 53 CreateExternalVideoSurfaceContainer( | 52 CreateExternalVideoSurfaceContainer( |
| 54 content::WebContents* web_contents) OVERRIDE; | 53 content::WebContents* web_contents) OVERRIDE; |
| 55 #endif | 54 #endif |
| 56 | 55 |
| 57 scoped_ptr<content::BrowserMainRunner> browser_runner_; | 56 scoped_ptr<content::BrowserMainRunner> browser_runner_; |
| 58 AwContentClient content_client_; | 57 AwContentClient content_client_; |
| 59 scoped_ptr<AwContentBrowserClient> content_browser_client_; | 58 scoped_ptr<AwContentBrowserClient> content_browser_client_; |
| 60 scoped_ptr<AwContentRendererClient> content_renderer_client_; | 59 scoped_ptr<AwContentRendererClient> content_renderer_client_; |
| 61 scoped_ptr<GpuMemoryBufferFactoryImpl> gpu_memory_buffer_factory_; | |
| 62 | 60 |
| 63 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate); | 61 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate); |
| 64 }; | 62 }; |
| 65 | 63 |
| 66 } // namespace android_webview | 64 } // namespace android_webview |
| 67 | 65 |
| 68 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ | 66 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ |
| OLD | NEW |