Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: android_webview/lib/main/aw_main_delegate.h

Issue 231933006: Move ExternalVideoSurfaceHolder from WebContents UserData to BrowserMediaPlayerManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 } 17 }
17 18
18 namespace android_webview { 19 namespace android_webview {
19 20
20 class AwContentBrowserClient; 21 class AwContentBrowserClient;
21 class AwContentRendererClient; 22 class AwContentRendererClient;
22 class GpuMemoryBufferFactoryImpl; 23 class GpuMemoryBufferFactoryImpl;
23 24
24 // Android WebView implementation of ContentMainDelegate. 25 // Android WebView implementation of ContentMainDelegate.
25 class AwMainDelegate : public content::ContentMainDelegate, 26 class AwMainDelegate : public content::ContentMainDelegate,
(...skipping 16 matching lines...) Expand all
42 CreateContentRendererClient() OVERRIDE; 43 CreateContentRendererClient() OVERRIDE;
43 44
44 // JniDependencyFactory implementation. 45 // JniDependencyFactory implementation.
45 virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge( 46 virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge(
46 AwBrowserContext* browser_context) OVERRIDE; 47 AwBrowserContext* browser_context) OVERRIDE;
47 virtual content::GeolocationPermissionContext* CreateGeolocationPermission( 48 virtual content::GeolocationPermissionContext* CreateGeolocationPermission(
48 AwBrowserContext* browser_context) OVERRIDE; 49 AwBrowserContext* browser_context) OVERRIDE;
49 virtual content::WebContentsViewDelegate* CreateViewDelegate( 50 virtual content::WebContentsViewDelegate* CreateViewDelegate(
50 content::WebContents* web_contents) OVERRIDE; 51 content::WebContents* web_contents) OVERRIDE;
51 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() OVERRIDE; 52 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() OVERRIDE;
53 #if defined(VIDEO_HOLE)
54 virtual content::ExternalVideoSurfaceContainer*
55 CreateExternalVideoSurfaceContainer(
56 content::WebContents* web_contents) OVERRIDE;
57 #endif
52 58
53 scoped_ptr<content::BrowserMainRunner> browser_runner_; 59 scoped_ptr<content::BrowserMainRunner> browser_runner_;
54 AwContentClient content_client_; 60 AwContentClient content_client_;
55 scoped_ptr<AwContentBrowserClient> content_browser_client_; 61 scoped_ptr<AwContentBrowserClient> content_browser_client_;
56 scoped_ptr<AwContentRendererClient> content_renderer_client_; 62 scoped_ptr<AwContentRendererClient> content_renderer_client_;
57 scoped_ptr<GpuMemoryBufferFactoryImpl> gpu_memory_buffer_factory_; 63 scoped_ptr<GpuMemoryBufferFactoryImpl> gpu_memory_buffer_factory_;
58 64
59 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate); 65 DISALLOW_COPY_AND_ASSIGN(AwMainDelegate);
60 }; 66 };
61 67
62 } // namespace android_webview 68 } // namespace android_webview
63 69
64 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_ 70 #endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698