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

Side by Side Diff: ppapi/thunk/ppb_instance_api.h

Issue 265993002: Add Promises for EME (Chromium side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more trybot issue Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 PPAPI_THUNK_INSTANCE_API_H_ 5 #ifndef PPAPI_THUNK_INSTANCE_API_H_
6 #define PPAPI_THUNK_INSTANCE_API_H_ 6 #define PPAPI_THUNK_INSTANCE_API_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ppapi/c/dev/ppb_url_util_dev.h" 10 #include "ppapi/c/dev/ppb_url_util_dev.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // Zoom. 148 // Zoom.
149 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; 149 virtual void ZoomChanged(PP_Instance instance, double factor) = 0;
150 virtual void ZoomLimitsChanged(PP_Instance instance, 150 virtual void ZoomLimitsChanged(PP_Instance instance,
151 double minimum_factor, 151 double minimum_factor,
152 double maximum_factor) = 0; 152 double maximum_factor) = 0;
153 // Testing and URLUtil. 153 // Testing and URLUtil.
154 virtual PP_Var GetDocumentURL(PP_Instance instance, 154 virtual PP_Var GetDocumentURL(PP_Instance instance,
155 PP_URLComponents_Dev* components) = 0; 155 PP_URLComponents_Dev* components) = 0;
156 #if !defined(OS_NACL) 156 #if !defined(OS_NACL)
157 // Content Decryptor. 157 // Content Decryptor.
158 virtual void SessionCreated(PP_Instance instance, 158 virtual void PromiseResolved(PP_Instance instance, uint32 promise_id) = 0;
159 uint32_t session_id, 159 virtual void PromiseResolvedWithSession(PP_Instance instance,
160 PP_Var web_session_id) = 0; 160 uint32 promise_id,
161 PP_Var web_session_id_var) = 0;
162 virtual void PromiseRejected(PP_Instance instance,
163 uint32 promise_id,
164 PP_CdmExceptionCode exception_code,
165 uint32 system_code,
166 PP_Var error_description_var) = 0;
161 virtual void SessionMessage(PP_Instance instance, 167 virtual void SessionMessage(PP_Instance instance,
162 uint32_t session_id, 168 PP_Var web_session_id_var,
163 PP_Var message, 169 PP_Var message_var,
164 PP_Var destination_url) = 0; 170 PP_Var destination_url_var) = 0;
165 virtual void SessionReady(PP_Instance instance, uint32_t session_id) = 0; 171 virtual void SessionReady(PP_Instance instance,
166 virtual void SessionClosed(PP_Instance instance, uint32_t session_id) = 0; 172 PP_Var web_session_id_var) = 0;
173 virtual void SessionClosed(PP_Instance instance,
174 PP_Var web_session_id_var) = 0;
167 virtual void SessionError(PP_Instance instance, 175 virtual void SessionError(PP_Instance instance,
168 uint32_t session_id, 176 PP_Var web_session_id_var,
169 int32_t media_error, 177 PP_CdmExceptionCode exception_code,
170 uint32_t system_code) = 0; 178 uint32 system_code,
179 PP_Var error_description_var) = 0;
171 virtual void DeliverBlock(PP_Instance instance, 180 virtual void DeliverBlock(PP_Instance instance,
172 PP_Resource decrypted_block, 181 PP_Resource decrypted_block,
173 const PP_DecryptedBlockInfo* block_info) = 0; 182 const PP_DecryptedBlockInfo* block_info) = 0;
174 virtual void DecoderInitializeDone(PP_Instance instance, 183 virtual void DecoderInitializeDone(PP_Instance instance,
175 PP_DecryptorStreamType decoder_type, 184 PP_DecryptorStreamType decoder_type,
176 uint32_t request_id, 185 uint32_t request_id,
177 PP_Bool success) = 0; 186 PP_Bool success) = 0;
178 virtual void DecoderDeinitializeDone(PP_Instance instance, 187 virtual void DecoderDeinitializeDone(PP_Instance instance,
179 PP_DecryptorStreamType decoder_type, 188 PP_DecryptorStreamType decoder_type,
180 uint32_t request_id) = 0; 189 uint32_t request_id) = 0;
(...skipping 21 matching lines...) Expand all
202 PP_URLComponents_Dev* components) = 0; 211 PP_URLComponents_Dev* components) = 0;
203 #endif // !defined(OS_NACL) 212 #endif // !defined(OS_NACL)
204 213
205 static const ApiID kApiID = API_ID_PPB_INSTANCE; 214 static const ApiID kApiID = API_ID_PPB_INSTANCE;
206 }; 215 };
207 216
208 } // namespace thunk 217 } // namespace thunk
209 } // namespace ppapi 218 } // namespace ppapi
210 219
211 #endif // PPAPI_THUNK_INSTANCE_API_H_ 220 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_content_decryptor_private_thunk.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698