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

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: 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
243 WebKit::WebPeerConnectionHandler* CreatePeerConnectionHandler( 249 WebKit::WebPeerConnectionHandler* CreatePeerConnectionHandler(
244 WebKit::WebPeerConnectionHandlerClient* client); 250 WebKit::WebPeerConnectionHandlerClient* client);
245 WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep( 251 WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep(
246 WebKit::WebPeerConnection00HandlerClient* client); 252 WebKit::WebPeerConnection00HandlerClient* client);
247 253
254 #if defined(OS_ANDROID)
255 // Called when a video surface object is passed through the render thread to
256 // the designated WebMediaPlayerAndroid given by the player_id.
257 // TODO(qinmin): Upstream the code for passing Java surface object to the
258 // renderer thread.
259 void SetVideoSurface(jobject j_surface, int player_id);
jamesr 2012/05/18 23:10:24 where does the "jobject" type come from? jni.h? fe
qinmin 2012/05/19 00:50:04 I forgot to upload render_view.h in this patch, th
260 #endif
261
248 // Functions to add and remove observers for this object. 262 // Functions to add and remove observers for this object.
249 void AddObserver(content::RenderViewObserver* observer); 263 void AddObserver(content::RenderViewObserver* observer);
250 void RemoveObserver(content::RenderViewObserver* observer); 264 void RemoveObserver(content::RenderViewObserver* observer);
251 265
252 // Adds the given file chooser request to the file_chooser_completion_ queue 266 // Adds the given file chooser request to the file_chooser_completion_ queue
253 // (see that var for more) and requests the chooser be displayed if there are 267 // (see that var for more) and requests the chooser be displayed if there are
254 // no other waiting items in the queue. 268 // no other waiting items in the queue.
255 // 269 //
256 // Returns true if the chooser was successfully scheduled. False means we 270 // Returns true if the chooser was successfully scheduled. False means we
257 // didn't schedule anything. 271 // didn't schedule anything.
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 // is fine. 1328 // is fine.
1315 ObserverList<content::RenderViewObserver> observers_; 1329 ObserverList<content::RenderViewObserver> observers_;
1316 1330
1317 // Used to inform didChangeSelection() when it is called in the context 1331 // Used to inform didChangeSelection() when it is called in the context
1318 // of handling a ViewMsg_SelectRange IPC. 1332 // of handling a ViewMsg_SelectRange IPC.
1319 bool handling_select_range_; 1333 bool handling_select_range_;
1320 1334
1321 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. 1335 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface.
1322 scoped_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; 1336 scoped_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_;
1323 1337
1338 #if defined(OS_ANDROID)
1339 // The media player manager for managing all the media players on this view.
1340 scoped_ptr<webkit_media::WebMediaPlayerManagerAndroid> media_player_manager_;
1341 #endif
1342
1324 // Plugins ------------------------------------------------------------------- 1343 // Plugins -------------------------------------------------------------------
1325 1344
1326 // All the currently active plugin delegates for this RenderView; kept so 1345 // All the currently active plugin delegates for this RenderView; kept so
1327 // that we can enumerate them to send updates about things like window 1346 // that we can enumerate them to send updates about things like window
1328 // location or tab focus and visibily. These are non-owning references. 1347 // location or tab focus and visibily. These are non-owning references.
1329 std::set<WebPluginDelegateProxy*> plugin_delegates_; 1348 std::set<WebPluginDelegateProxy*> plugin_delegates_;
1330 1349
1331 #if defined(OS_WIN) 1350 #if defined(OS_WIN)
1332 // The ID of the focused NPAPI plug-in. 1351 // The ID of the focused NPAPI plug-in.
1333 int focused_plugin_id_; 1352 int focused_plugin_id_;
(...skipping 19 matching lines...) Expand all
1353 // bunch of stuff, you should probably create a helper class and put your 1372 // 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 1373 // 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 1374 // use the Observer interface to filter IPC messages and receive frame change
1356 // notifications. 1375 // notifications.
1357 // --------------------------------------------------------------------------- 1376 // ---------------------------------------------------------------------------
1358 1377
1359 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1378 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1360 }; 1379 };
1361 1380
1362 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1381 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_view_impl.cc » ('j') | webkit/media/android/webmediaplayer_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698