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

Side by Side Diff: content/renderer/media/cdm/renderer_cdm_manager.h

Issue 2255943002: EME: Remove obsolete legacy APIs related to versions of prefixed EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build and add bug reference for obsoletes Created 4 years, 4 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
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 CONTENT_RENDERER_MEDIA_CDM_RENDERER_CDM_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CDM_RENDERER_CDM_MANAGER_H_
6 #define CONTENT_RENDERER_MEDIA_CDM_RENDERER_CDM_MANAGER_H_ 6 #define CONTENT_RENDERER_MEDIA_CDM_RENDERER_CDM_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // RenderFrameObserver implementation. 77 // RenderFrameObserver implementation.
78 void OnDestruct() override; 78 void OnDestruct() override;
79 79
80 // Gets the pointer to ProxyMediaKeys given the |cdm_id|. 80 // Gets the pointer to ProxyMediaKeys given the |cdm_id|.
81 ProxyMediaKeys* GetMediaKeys(int cdm_id); 81 ProxyMediaKeys* GetMediaKeys(int cdm_id);
82 82
83 // Message handlers. 83 // Message handlers.
84 void OnSessionMessage(int cdm_id, 84 void OnSessionMessage(int cdm_id,
85 const std::string& session_id, 85 const std::string& session_id,
86 media::MediaKeys::MessageType message_type, 86 media::MediaKeys::MessageType message_type,
87 const std::vector<uint8_t>& message, 87 const std::vector<uint8_t>& message);
88 const GURL& legacy_destination_url);
89 void OnSessionClosed(int cdm_id, const std::string& session_id); 88 void OnSessionClosed(int cdm_id, const std::string& session_id);
90 void OnLegacySessionError(int cdm_id,
91 const std::string& session_id,
92 media::MediaKeys::Exception exception,
93 uint32_t system_code,
94 const std::string& error_message);
95 void OnSessionKeysChange( 89 void OnSessionKeysChange(
96 int cdm_id, 90 int cdm_id,
97 const std::string& session_id, 91 const std::string& session_id,
98 bool has_additional_usable_key, 92 bool has_additional_usable_key,
99 const std::vector<media::CdmKeyInformation>& key_info_vector); 93 const std::vector<media::CdmKeyInformation>& key_info_vector);
100 void OnSessionExpirationUpdate(int cdm_id, 94 void OnSessionExpirationUpdate(int cdm_id,
101 const std::string& session_id, 95 const std::string& session_id,
102 const base::Time& new_expiry_time); 96 const base::Time& new_expiry_time);
103 97
104 void OnPromiseResolved(int cdm_id, uint32_t promise_id); 98 void OnPromiseResolved(int cdm_id, uint32_t promise_id);
(...skipping 12 matching lines...) Expand all
117 111
118 // CDM ID to ProxyMediaKeys mapping. 112 // CDM ID to ProxyMediaKeys mapping.
119 std::map<int, ProxyMediaKeys*> proxy_media_keys_map_; 113 std::map<int, ProxyMediaKeys*> proxy_media_keys_map_;
120 114
121 DISALLOW_COPY_AND_ASSIGN(RendererCdmManager); 115 DISALLOW_COPY_AND_ASSIGN(RendererCdmManager);
122 }; 116 };
123 117
124 } // namespace content 118 } // namespace content
125 119
126 #endif // CONTENT_RENDERER_MEDIA_CDM_RENDERER_CDM_MANAGER_H_ 120 #endif // CONTENT_RENDERER_MEDIA_CDM_RENDERER_CDM_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698