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

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: cdm_promise template Created 6 years, 7 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Zoom. 139 // Zoom.
140 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; 140 virtual void ZoomChanged(PP_Instance instance, double factor) = 0;
141 virtual void ZoomLimitsChanged(PP_Instance instance, 141 virtual void ZoomLimitsChanged(PP_Instance instance,
142 double minimum_factor, 142 double minimum_factor,
143 double maximum_factor) = 0; 143 double maximum_factor) = 0;
144 // Testing and URLUtil. 144 // Testing and URLUtil.
145 virtual PP_Var GetDocumentURL(PP_Instance instance, 145 virtual PP_Var GetDocumentURL(PP_Instance instance,
146 PP_URLComponents_Dev* components) = 0; 146 PP_URLComponents_Dev* components) = 0;
147 #if !defined(OS_NACL) 147 #if !defined(OS_NACL)
148 // Content Decryptor. 148 // Content Decryptor.
149 virtual void SessionCreated(PP_Instance instance, 149 virtual void PromiseResolved(PP_Instance instance, uint32 promise_id) = 0;
150 uint32_t session_id, 150 virtual void PromiseResolvedWithSession(PP_Instance instance,
151 PP_Var web_session_id) = 0; 151 uint32 promise_id,
152 PP_Var web_session_id_var) = 0;
153 virtual void PromiseRejected(PP_Instance instance,
154 uint32 promise_id,
155 PP_ExceptionCodeType exception_code,
156 uint32 system_code,
157 PP_Var error_description_var) = 0;
152 virtual void SessionMessage(PP_Instance instance, 158 virtual void SessionMessage(PP_Instance instance,
153 uint32_t session_id, 159 PP_Var web_session_id_var,
154 PP_Var message, 160 PP_Var message_var,
155 PP_Var destination_url) = 0; 161 PP_Var destination_url_var) = 0;
156 virtual void SessionReady(PP_Instance instance, uint32_t session_id) = 0; 162 virtual void SessionReady(PP_Instance instance,
157 virtual void SessionClosed(PP_Instance instance, uint32_t session_id) = 0; 163 PP_Var web_session_id_var) = 0;
164 virtual void SessionClosed(PP_Instance instance,
165 PP_Var web_session_id_var) = 0;
158 virtual void SessionError(PP_Instance instance, 166 virtual void SessionError(PP_Instance instance,
159 uint32_t session_id, 167 PP_Var web_session_id_var,
160 int32_t media_error, 168 PP_ExceptionCodeType exception_code,
161 uint32_t system_code) = 0; 169 uint32 system_code,
170 PP_Var error_description_var) = 0;
162 virtual void DeliverBlock(PP_Instance instance, 171 virtual void DeliverBlock(PP_Instance instance,
163 PP_Resource decrypted_block, 172 PP_Resource decrypted_block,
164 const PP_DecryptedBlockInfo* block_info) = 0; 173 const PP_DecryptedBlockInfo* block_info) = 0;
165 virtual void DecoderInitializeDone(PP_Instance instance, 174 virtual void DecoderInitializeDone(PP_Instance instance,
166 PP_DecryptorStreamType decoder_type, 175 PP_DecryptorStreamType decoder_type,
167 uint32_t request_id, 176 uint32_t request_id,
168 PP_Bool success) = 0; 177 PP_Bool success) = 0;
169 virtual void DecoderDeinitializeDone(PP_Instance instance, 178 virtual void DecoderDeinitializeDone(PP_Instance instance,
170 PP_DecryptorStreamType decoder_type, 179 PP_DecryptorStreamType decoder_type,
171 uint32_t request_id) = 0; 180 uint32_t request_id) = 0;
(...skipping 21 matching lines...) Expand all
193 PP_URLComponents_Dev* components) = 0; 202 PP_URLComponents_Dev* components) = 0;
194 #endif // !defined(OS_NACL) 203 #endif // !defined(OS_NACL)
195 204
196 static const ApiID kApiID = API_ID_PPB_INSTANCE; 205 static const ApiID kApiID = API_ID_PPB_INSTANCE;
197 }; 206 };
198 207
199 } // namespace thunk 208 } // namespace thunk
200 } // namespace ppapi 209 } // namespace ppapi
201 210
202 #endif // PPAPI_THUNK_INSTANCE_API_H_ 211 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698