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

Side by Side Diff: chromecast/media/cdm/browser_cdm_cast.h

Issue 984693002: Chromecast: implement other MediaKeys interfaces in BrowserCdmCast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change to NOTREACHED Created 5 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
« no previous file with comments | « no previous file | chromecast/media/cdm/browser_cdm_cast.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_ 5 #ifndef CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_
6 #define CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_ 6 #define CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 27 matching lines...) Expand all
38 const ::media::SessionClosedCB& session_closed_cb, 38 const ::media::SessionClosedCB& session_closed_cb,
39 const ::media::SessionErrorCB& session_error_cb, 39 const ::media::SessionErrorCB& session_error_cb,
40 const ::media::SessionKeysChangeCB& session_keys_change_cb, 40 const ::media::SessionKeysChangeCB& session_keys_change_cb,
41 const ::media::SessionExpirationUpdateCB& session_expiration_update_cb); 41 const ::media::SessionExpirationUpdateCB& session_expiration_update_cb);
42 42
43 // PlayerTracker implementation. 43 // PlayerTracker implementation.
44 int RegisterPlayer(const base::Closure& new_key_cb, 44 int RegisterPlayer(const base::Closure& new_key_cb,
45 const base::Closure& cdm_unset_cb) override; 45 const base::Closure& cdm_unset_cb) override;
46 void UnregisterPlayer(int registration_id) override; 46 void UnregisterPlayer(int registration_id) override;
47 47
48 // ::media::BrowserCdm implementation:
49 void LoadSession(::media::MediaKeys::SessionType session_type,
50 const std::string& session_id,
51 scoped_ptr<::media::NewSessionCdmPromise> promise) override;
52 ::media::CdmContext* GetCdmContext() override;
53
48 // Returns the decryption context needed to decrypt frames encrypted with 54 // Returns the decryption context needed to decrypt frames encrypted with
49 // |key_id|. 55 // |key_id|.
50 // Returns null if |key_id| is not available. 56 // Returns null if |key_id| is not available.
51 virtual scoped_refptr<DecryptContext> GetDecryptContext( 57 virtual scoped_refptr<DecryptContext> GetDecryptContext(
52 const std::string& key_id) = 0; 58 const std::string& key_id) = 0;
53 59
54 protected: 60 protected:
55 void OnSessionMessage(const std::string& session_id, 61 void OnSessionMessage(const std::string& session_id,
56 const std::vector<uint8>& message, 62 const std::vector<uint8>& message,
57 const GURL& destination_url); 63 const GURL& destination_url);
(...skipping 13 matching lines...) Expand all
71 std::map<uint32_t, base::Closure> new_key_callbacks_; 77 std::map<uint32_t, base::Closure> new_key_callbacks_;
72 std::map<uint32_t, base::Closure> cdm_unset_callbacks_; 78 std::map<uint32_t, base::Closure> cdm_unset_callbacks_;
73 79
74 DISALLOW_COPY_AND_ASSIGN(BrowserCdmCast); 80 DISALLOW_COPY_AND_ASSIGN(BrowserCdmCast);
75 }; 81 };
76 82
77 } // namespace media 83 } // namespace media
78 } // namespace chromecast 84 } // namespace chromecast
79 85
80 #endif // CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_ 86 #endif // CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/media/cdm/browser_cdm_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698