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

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

Issue 2160953004: [Chromecast] Pass security origin to CastCdm and remove destination url (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Depends on //url:url Created 4 years, 5 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 | « chromecast/media/cdm/BUILD.gn ('k') | chromecast/media/cdm/cast_cdm.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_cast_cdm_H_ 5 #ifndef CHROMECAST_MEDIA_CDM_cast_cdm_H_
6 #define CHROMECAST_MEDIA_CDM_cast_cdm_H_ 6 #define CHROMECAST_MEDIA_CDM_cast_cdm_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 uint32_t system_code) = 0; 70 uint32_t system_code) = 0;
71 71
72 // ::media::MediaKeys implementation. 72 // ::media::MediaKeys implementation.
73 ::media::CdmContext* GetCdmContext() override; 73 ::media::CdmContext* GetCdmContext() override;
74 74
75 protected: 75 protected:
76 ~CastCdm() override; 76 ~CastCdm() override;
77 77
78 void OnSessionMessage(const std::string& session_id, 78 void OnSessionMessage(const std::string& session_id,
79 const std::vector<uint8_t>& message, 79 const std::vector<uint8_t>& message,
80 const GURL& destination_url,
81 ::media::MediaKeys::MessageType message_type); 80 ::media::MediaKeys::MessageType message_type);
82 void OnSessionClosed(const std::string& session_id); 81 void OnSessionClosed(const std::string& session_id);
83 void OnSessionKeysChange(const std::string& session_id, 82 void OnSessionKeysChange(const std::string& session_id,
84 bool newly_usable_keys, 83 bool newly_usable_keys,
85 ::media::CdmKeysInfo keys_info); 84 ::media::CdmKeysInfo keys_info);
86 85
87 void KeyIdAndKeyPairsToInfo(const ::media::KeyIdAndKeyPairs& keys, 86 void KeyIdAndKeyPairsToInfo(const ::media::KeyIdAndKeyPairs& keys,
88 ::media::CdmKeysInfo* key_info); 87 ::media::CdmKeysInfo* key_info);
89 88
90 private: 89 private:
(...skipping 13 matching lines...) Expand all
104 103
105 base::ThreadChecker thread_checker_; 104 base::ThreadChecker thread_checker_;
106 105
107 DISALLOW_COPY_AND_ASSIGN(CastCdm); 106 DISALLOW_COPY_AND_ASSIGN(CastCdm);
108 }; 107 };
109 108
110 } // namespace media 109 } // namespace media
111 } // namespace chromecast 110 } // namespace chromecast
112 111
113 #endif // CHROMECAST_MEDIA_CDM_cast_cdm_H_ 112 #endif // CHROMECAST_MEDIA_CDM_cast_cdm_H_
OLDNEW
« no previous file with comments | « chromecast/media/cdm/BUILD.gn ('k') | chromecast/media/cdm/cast_cdm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698