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

Side by Side Diff: media/mojo/services/mojo_cdm_service.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 MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 private: 79 private:
80 // Callback for CdmFactory::Create(). 80 // Callback for CdmFactory::Create().
81 void OnCdmCreated(const InitializeCallback& callback, 81 void OnCdmCreated(const InitializeCallback& callback,
82 const scoped_refptr<MediaKeys>& cdm, 82 const scoped_refptr<MediaKeys>& cdm,
83 const std::string& error_message); 83 const std::string& error_message);
84 84
85 // Callbacks for firing session events. 85 // Callbacks for firing session events.
86 void OnSessionMessage(const std::string& session_id, 86 void OnSessionMessage(const std::string& session_id,
87 MediaKeys::MessageType message_type, 87 MediaKeys::MessageType message_type,
88 const std::vector<uint8_t>& message, 88 const std::vector<uint8_t>& message);
89 const GURL& legacy_destination_url);
90 void OnSessionKeysChange(const std::string& session_id, 89 void OnSessionKeysChange(const std::string& session_id,
91 bool has_additional_usable_key, 90 bool has_additional_usable_key,
92 CdmKeysInfo keys_info); 91 CdmKeysInfo keys_info);
93 void OnSessionExpirationUpdate(const std::string& session_id, 92 void OnSessionExpirationUpdate(const std::string& session_id,
94 const base::Time& new_expiry_time); 93 const base::Time& new_expiry_time);
95 void OnSessionClosed(const std::string& session_id); 94 void OnSessionClosed(const std::string& session_id);
96 void OnLegacySessionError(const std::string& session_id,
97 MediaKeys::Exception exception,
98 uint32_t system_code,
99 const std::string& error_message);
100 95
101 // Callback for when |decryptor_| loses connectivity. 96 // Callback for when |decryptor_| loses connectivity.
102 void OnDecryptorConnectionError(); 97 void OnDecryptorConnectionError();
103 98
104 // CDM ID to be assigned to the next successfully initialized CDM. This ID is 99 // CDM ID to be assigned to the next successfully initialized CDM. This ID is
105 // unique per process. It will be used to locate the CDM by the media players 100 // unique per process. It will be used to locate the CDM by the media players
106 // living in the same process. 101 // living in the same process.
107 static int next_cdm_id_; 102 static int next_cdm_id_;
108 103
109 mojo::StrongBinding<mojom::ContentDecryptionModule> binding_; 104 mojo::StrongBinding<mojom::ContentDecryptionModule> binding_;
(...skipping 11 matching lines...) Expand all
121 116
122 base::WeakPtr<MojoCdmService> weak_this_; 117 base::WeakPtr<MojoCdmService> weak_this_;
123 base::WeakPtrFactory<MojoCdmService> weak_factory_; 118 base::WeakPtrFactory<MojoCdmService> weak_factory_;
124 119
125 DISALLOW_COPY_AND_ASSIGN(MojoCdmService); 120 DISALLOW_COPY_AND_ASSIGN(MojoCdmService);
126 }; 121 };
127 122
128 } // namespace media 123 } // namespace media
129 124
130 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_ 125 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698