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

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

Issue 1165513004: Chromecast: adds MessageType to BrowserCdmCast::OnSessionMessage API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Returns the decryption context needed to decrypt frames encrypted with 63 // Returns the decryption context needed to decrypt frames encrypted with
64 // |key_id|. 64 // |key_id|.
65 // Returns null if |key_id| is not available. 65 // Returns null if |key_id| is not available.
66 virtual scoped_refptr<DecryptContext> GetDecryptContext( 66 virtual scoped_refptr<DecryptContext> GetDecryptContext(
67 const std::string& key_id) const = 0; 67 const std::string& key_id) const = 0;
68 68
69 protected: 69 protected:
70 void OnSessionMessage(const std::string& session_id, 70 void OnSessionMessage(const std::string& session_id,
71 const std::vector<uint8_t>& message, 71 const std::vector<uint8_t>& message,
72 const GURL& destination_url); 72 const GURL& destination_url,
73 ::media::MediaKeys::MessageType message_type);
73 void OnSessionClosed(const std::string& session_id); 74 void OnSessionClosed(const std::string& session_id);
74 void OnSessionKeysChange(const std::string& session_id, 75 void OnSessionKeysChange(const std::string& session_id,
75 const ::media::KeyIdAndKeyPairs& keys); 76 const ::media::KeyIdAndKeyPairs& keys);
76 77
77 private: 78 private:
78 friend class BrowserCdmCastUi; 79 friend class BrowserCdmCastUi;
79 80
80 // Allow subclasses to override to provide key sysytem specific 81 // Allow subclasses to override to provide key sysytem specific
81 // initialization. 82 // initialization.
82 virtual void InitializeInternal(); 83 virtual void InitializeInternal();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 139
139 base::ThreadChecker thread_checker_; 140 base::ThreadChecker thread_checker_;
140 141
141 DISALLOW_COPY_AND_ASSIGN(BrowserCdmCastUi); 142 DISALLOW_COPY_AND_ASSIGN(BrowserCdmCastUi);
142 }; 143 };
143 144
144 } // namespace media 145 } // namespace media
145 } // namespace chromecast 146 } // namespace chromecast
146 147
147 #endif // CHROMECAST_MEDIA_CDM_BROWSER_CDM_CAST_H_ 148 #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