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

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

Issue 339613002: Revert of Support casting for embedded YT videos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « media/base/android/media_player_android.cc ('k') | media/base/android/media_player_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // hand, it needs to call ReleaseMediaResources() when it is done with 42 // hand, it needs to call ReleaseMediaResources() when it is done with
43 // decoding. MediaPlayerBridge also forwards Android MediaPlayer callbacks to 43 // decoding. MediaPlayerBridge also forwards Android MediaPlayer callbacks to
44 // the |manager| when needed. 44 // the |manager| when needed.
45 MediaPlayerBridge(int player_id, 45 MediaPlayerBridge(int player_id,
46 const GURL& url, 46 const GURL& url,
47 const GURL& first_party_for_cookies, 47 const GURL& first_party_for_cookies,
48 const std::string& user_agent, 48 const std::string& user_agent,
49 bool hide_url_log, 49 bool hide_url_log,
50 MediaPlayerManager* manager, 50 MediaPlayerManager* manager,
51 const RequestMediaResourcesCB& request_media_resources_cb, 51 const RequestMediaResourcesCB& request_media_resources_cb,
52 const ReleaseMediaResourcesCB& release_media_resources_cb, 52 const ReleaseMediaResourcesCB& release_media_resources_cb);
53 const GURL& frame_url);
54 virtual ~MediaPlayerBridge(); 53 virtual ~MediaPlayerBridge();
55 54
56 // Initialize this object and extract the metadata from the media. 55 // Initialize this object and extract the metadata from the media.
57 virtual void Initialize(); 56 virtual void Initialize();
58 57
59 // MediaPlayerAndroid implementation. 58 // MediaPlayerAndroid implementation.
60 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface) OVERRIDE; 59 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface) OVERRIDE;
61 virtual void Start() OVERRIDE; 60 virtual void Start() OVERRIDE;
62 virtual void Pause(bool is_media_related_action ALLOW_UNUSED) OVERRIDE; 61 virtual void Pause(bool is_media_related_action ALLOW_UNUSED) OVERRIDE;
63 virtual void SeekTo(base::TimeDelta timestamp) OVERRIDE; 62 virtual void SeekTo(base::TimeDelta timestamp) OVERRIDE;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // Weak pointer passed to |listener_| for callbacks. 182 // Weak pointer passed to |listener_| for callbacks.
184 // NOTE: Weak pointers must be invalidated before all other member variables. 183 // NOTE: Weak pointers must be invalidated before all other member variables.
185 base::WeakPtrFactory<MediaPlayerBridge> weak_factory_; 184 base::WeakPtrFactory<MediaPlayerBridge> weak_factory_;
186 185
187 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); 186 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge);
188 }; 187 };
189 188
190 } // namespace media 189 } // namespace media
191 190
192 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ 191 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_
OLDNEW
« no previous file with comments | « media/base/android/media_player_android.cc ('k') | media/base/android/media_player_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698