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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 10413015: Upstream implementation for embedded video for WebMediaPlayerAndroid (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove GetWebMediaPlayerManager() from render_view.h Created 8 years, 7 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 | Annotate | Revision Log
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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 class PluginInstance; 112 class PluginInstance;
113 } // namespace ppapi 113 } // namespace ppapi
114 114
115 } // namespace webkit 115 } // namespace webkit
116 116
117 namespace webkit_glue { 117 namespace webkit_glue {
118 class ImageResourceFetcher; 118 class ImageResourceFetcher;
119 class ResourceFetcher; 119 class ResourceFetcher;
120 } 120 }
121 121
122 #if defined(OS_ANDROID)
123 namespace webkit_media {
124 class WebMediaPlayerManagerAndroid;
125 }
126 #endif
127
122 namespace WebKit { 128 namespace WebKit {
123 class WebApplicationCacheHost; 129 class WebApplicationCacheHost;
124 class WebApplicationCacheHostClient; 130 class WebApplicationCacheHostClient;
125 class WebDOMMessageEvent; 131 class WebDOMMessageEvent;
126 class WebDataSource; 132 class WebDataSource;
127 class WebDragData; 133 class WebDragData;
128 class WebGeolocationClient; 134 class WebGeolocationClient;
129 class WebIconURL; 135 class WebIconURL;
130 class WebImage; 136 class WebImage;
131 class WebPeerConnection00Handler; 137 class WebPeerConnection00Handler;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 239
234 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. 240 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled.
235 content::P2PSocketDispatcher* p2p_socket_dispatcher() { 241 content::P2PSocketDispatcher* p2p_socket_dispatcher() {
236 return p2p_socket_dispatcher_; 242 return p2p_socket_dispatcher_;
237 } 243 }
238 244
239 MouseLockDispatcher* mouse_lock_dispatcher() { 245 MouseLockDispatcher* mouse_lock_dispatcher() {
240 return mouse_lock_dispatcher_; 246 return mouse_lock_dispatcher_;
241 } 247 }
242 248
249 #if defined(OS_ANDROID)
250 webkit_media::WebMediaPlayerManagerAndroid* media_player_manager() {
251 return media_player_manager_.get();
252 }
253 #endif
254
243 WebKit::WebPeerConnectionHandler* CreatePeerConnectionHandler( 255 WebKit::WebPeerConnectionHandler* CreatePeerConnectionHandler(
244 WebKit::WebPeerConnectionHandlerClient* client); 256 WebKit::WebPeerConnectionHandlerClient* client);
245 WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep( 257 WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep(
246 WebKit::WebPeerConnection00HandlerClient* client); 258 WebKit::WebPeerConnection00HandlerClient* client);
247 259
248 // Functions to add and remove observers for this object. 260 // Functions to add and remove observers for this object.
249 void AddObserver(content::RenderViewObserver* observer); 261 void AddObserver(content::RenderViewObserver* observer);
250 void RemoveObserver(content::RenderViewObserver* observer); 262 void RemoveObserver(content::RenderViewObserver* observer);
251 263
252 // Adds the given file chooser request to the file_chooser_completion_ queue 264 // Adds the given file chooser request to the file_chooser_completion_ queue
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 // is fine. 1326 // is fine.
1315 ObserverList<content::RenderViewObserver> observers_; 1327 ObserverList<content::RenderViewObserver> observers_;
1316 1328
1317 // Used to inform didChangeSelection() when it is called in the context 1329 // Used to inform didChangeSelection() when it is called in the context
1318 // of handling a ViewMsg_SelectRange IPC. 1330 // of handling a ViewMsg_SelectRange IPC.
1319 bool handling_select_range_; 1331 bool handling_select_range_;
1320 1332
1321 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. 1333 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface.
1322 scoped_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; 1334 scoped_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_;
1323 1335
1336 #if defined(OS_ANDROID)
1337 // The media player manager for managing all the media players on this view.
1338 scoped_ptr<webkit_media::WebMediaPlayerManagerAndroid> media_player_manager_;
1339 #endif
1340
1324 // Plugins ------------------------------------------------------------------- 1341 // Plugins -------------------------------------------------------------------
1325 1342
1326 // All the currently active plugin delegates for this RenderView; kept so 1343 // All the currently active plugin delegates for this RenderView; kept so
1327 // that we can enumerate them to send updates about things like window 1344 // that we can enumerate them to send updates about things like window
1328 // location or tab focus and visibily. These are non-owning references. 1345 // location or tab focus and visibily. These are non-owning references.
1329 std::set<WebPluginDelegateProxy*> plugin_delegates_; 1346 std::set<WebPluginDelegateProxy*> plugin_delegates_;
1330 1347
1331 #if defined(OS_WIN) 1348 #if defined(OS_WIN)
1332 // The ID of the focused NPAPI plug-in. 1349 // The ID of the focused NPAPI plug-in.
1333 int focused_plugin_id_; 1350 int focused_plugin_id_;
(...skipping 19 matching lines...) Expand all
1353 // bunch of stuff, you should probably create a helper class and put your 1370 // bunch of stuff, you should probably create a helper class and put your
1354 // data and methods on that to avoid bloating RenderView more. You can 1371 // data and methods on that to avoid bloating RenderView more. You can
1355 // use the Observer interface to filter IPC messages and receive frame change 1372 // use the Observer interface to filter IPC messages and receive frame change
1356 // notifications. 1373 // notifications.
1357 // --------------------------------------------------------------------------- 1374 // ---------------------------------------------------------------------------
1358 1375
1359 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1376 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1360 }; 1377 };
1361 1378
1362 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1379 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_view_impl.cc » ('j') | content/renderer/render_view_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698