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

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

Issue 185993004: Encrypted Media: Confine UUID code to MediaDrmBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 6 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_SOURCE_PLAYER_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 28 matching lines...) Expand all
39 public: 39 public:
40 // Constructs a player with the given ID and demuxer. |manager| must outlive 40 // Constructs a player with the given ID and demuxer. |manager| must outlive
41 // the lifetime of this object. 41 // the lifetime of this object.
42 MediaSourcePlayer(int player_id, 42 MediaSourcePlayer(int player_id,
43 MediaPlayerManager* manager, 43 MediaPlayerManager* manager,
44 const RequestMediaResourcesCB& request_media_resources_cb, 44 const RequestMediaResourcesCB& request_media_resources_cb,
45 const ReleaseMediaResourcesCB& release_media_resources_cb, 45 const ReleaseMediaResourcesCB& release_media_resources_cb,
46 scoped_ptr<DemuxerAndroid> demuxer); 46 scoped_ptr<DemuxerAndroid> demuxer);
47 virtual ~MediaSourcePlayer(); 47 virtual ~MediaSourcePlayer();
48 48
49 static bool IsTypeSupported(const std::vector<uint8>& scheme_uuid, 49 static bool IsTypeSupported(const std::string& key_system,
50 MediaDrmBridge::SecurityLevel security_level, 50 MediaDrmBridge::SecurityLevel security_level,
51 const std::string& container, 51 const std::string& container,
52 const std::vector<std::string>& codecs); 52 const std::vector<std::string>& codecs);
53 53
54 // MediaPlayerAndroid implementation. 54 // MediaPlayerAndroid implementation.
55 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface) OVERRIDE; 55 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface) OVERRIDE;
56 virtual void Start() OVERRIDE; 56 virtual void Start() OVERRIDE;
57 virtual void Pause(bool is_media_related_action ALLOW_UNUSED) OVERRIDE; 57 virtual void Pause(bool is_media_related_action ALLOW_UNUSED) OVERRIDE;
58 virtual void SeekTo(const base::TimeDelta& timestamp) OVERRIDE; 58 virtual void SeekTo(const base::TimeDelta& timestamp) OVERRIDE;
59 virtual void Release() OVERRIDE; 59 virtual void Release() OVERRIDE;
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // Whether |surface_| is currently used by the player. 287 // Whether |surface_| is currently used by the player.
288 bool is_surface_in_use_; 288 bool is_surface_in_use_;
289 289
290 friend class MediaSourcePlayerTest; 290 friend class MediaSourcePlayerTest;
291 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer); 291 DISALLOW_COPY_AND_ASSIGN(MediaSourcePlayer);
292 }; 292 };
293 293
294 } // namespace media 294 } // namespace media
295 295
296 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_ 296 #endif // MEDIA_BASE_ANDROID_MEDIA_SOURCE_PLAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698