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

Side by Side Diff: media/base/android/media_player_bridge.h

Issue 10979047: Upstream fullscreen video implementation for android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove some unused variables and make fullscreen video to work with content shell Created 8 years, 2 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 MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 static bool RegisterMediaPlayerBridge(JNIEnv* env); 65 static bool RegisterMediaPlayerBridge(JNIEnv* env);
66 66
67 // Construct a MediaPlayerBridge object with all the needed media player 67 // Construct a MediaPlayerBridge object with all the needed media player
68 // callbacks. This object needs to call |manager|'s RequestMediaResources() 68 // callbacks. This object needs to call |manager|'s RequestMediaResources()
69 // before decoding the media stream. This allows |manager| to track 69 // before decoding the media stream. This allows |manager| to track
70 // unused resources and free them when needed. On the other hand, it needs 70 // unused resources and free them when needed. On the other hand, it needs
71 // to call ReleaseMediaResources() when it is done with decoding. 71 // to call ReleaseMediaResources() when it is done with decoding.
72 MediaPlayerBridge(int player_id, 72 MediaPlayerBridge(int player_id,
73 const std::string& url, 73 const std::string& url,
74 const std::string& first_party_for_cookies, 74 const std::string& first_party_for_cookies,
75 CookieGetter* cookies_getter, 75 CookieGetter* cookie_getter,
76 bool hide_url_log, 76 bool hide_url_log,
77 MediaPlayerBridgeManager* manager, 77 MediaPlayerBridgeManager* manager,
78 const MediaErrorCB& media_error_cb, 78 const MediaErrorCB& media_error_cb,
79 const VideoSizeChangedCB& video_size_changed_cb, 79 const VideoSizeChangedCB& video_size_changed_cb,
80 const BufferingUpdateCB& buffering_update_cb, 80 const BufferingUpdateCB& buffering_update_cb,
81 const MediaPreparedCB& media_prepared_cb, 81 const MediaPreparedCB& media_prepared_cb,
82 const PlaybackCompleteCB& playback_complete_cb, 82 const PlaybackCompleteCB& playback_complete_cb,
83 const SeekCompleteCB& seek_complete_cb, 83 const SeekCompleteCB& seek_complete_cb,
84 const TimeUpdateCB& time_update_cb); 84 const TimeUpdateCB& time_update_cb);
85 ~MediaPlayerBridge(); 85 ~MediaPlayerBridge();
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 // Listener object that listens to all the media player events. 219 // Listener object that listens to all the media player events.
220 MediaPlayerListener listener_; 220 MediaPlayerListener listener_;
221 221
222 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); 222 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge);
223 }; 223 };
224 224
225 } // namespace media 225 } // namespace media
226 226
227 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ 227 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698