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

Side by Side Diff: ppapi/proxy/ppb_instance_proxy.h

Issue 10854209: Modify the PPAPI CDM interface to pass more info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_instance_proxy.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 (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_PROXY_PPB_INSTANCE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
7 7
8 #include <string>
9
8 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
10 #include "ppapi/c/pp_time.h" 12 #include "ppapi/c/pp_time.h"
11 #include "ppapi/c/pp_var.h" 13 #include "ppapi/c/pp_var.h"
12 #include "ppapi/proxy/interface_proxy.h" 14 #include "ppapi/proxy/interface_proxy.h"
13 #include "ppapi/proxy/proxy_completion_callback_factory.h" 15 #include "ppapi/proxy/proxy_completion_callback_factory.h"
14 #include "ppapi/shared_impl/host_resource.h" 16 #include "ppapi/shared_impl/host_resource.h"
15 #include "ppapi/shared_impl/ppb_instance_shared.h" 17 #include "ppapi/shared_impl/ppb_instance_shared.h"
16 #include "ppapi/thunk/ppb_instance_api.h" 18 #include "ppapi/thunk/ppb_instance_api.h"
17 #include "ppapi/utility/completion_callback_factory.h" 19 #include "ppapi/utility/completion_callback_factory.h"
18 20
19 // Windows headers interfere with this file. 21 // Windows headers interfere with this file.
20 #ifdef PostMessage 22 #ifdef PostMessage
21 #undef PostMessage 23 #undef PostMessage
22 #endif 24 #endif
23 25
26 struct PP_DecryptedBlockInfo;
27
24 namespace ppapi { 28 namespace ppapi {
25 namespace proxy { 29 namespace proxy {
26 30
27 class SerializedVarReceiveInput; 31 class SerializedVarReceiveInput;
28 class SerializedVarOutParam; 32 class SerializedVarOutParam;
29 class SerializedVarReturnValue; 33 class SerializedVarReturnValue;
30 34
31 class PPB_Instance_Proxy : public InterfaceProxy, 35 class PPB_Instance_Proxy : public InterfaceProxy,
32 public PPB_Instance_Shared { 36 public PPB_Instance_Shared {
33 public: 37 public:
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 PP_Var session_id, 131 PP_Var session_id,
128 PP_Resource message, 132 PP_Resource message,
129 PP_Var default_url) OVERRIDE; 133 PP_Var default_url) OVERRIDE;
130 virtual void KeyError(PP_Instance instance, 134 virtual void KeyError(PP_Instance instance,
131 PP_Var key_system, 135 PP_Var key_system,
132 PP_Var session_id, 136 PP_Var session_id,
133 int32_t media_error, 137 int32_t media_error,
134 int32_t system_code) OVERRIDE; 138 int32_t system_code) OVERRIDE;
135 virtual void DeliverBlock(PP_Instance instance, 139 virtual void DeliverBlock(PP_Instance instance,
136 PP_Resource decrypted_block, 140 PP_Resource decrypted_block,
137 int32_t request_id) OVERRIDE; 141 const PP_DecryptedBlockInfo* block_info) OVERRIDE;
138 virtual void DeliverFrame(PP_Instance instance, 142 virtual void DeliverFrame(PP_Instance instance,
139 PP_Resource decrypted_frame, 143 PP_Resource decrypted_frame,
140 int32_t request_id) OVERRIDE; 144 const PP_DecryptedBlockInfo* block_info) OVERRIDE;
141 virtual void DeliverSamples(PP_Instance instance, 145 virtual void DeliverSamples(PP_Instance instance,
142 PP_Resource decrypted_samples, 146 PP_Resource decrypted_samples,
143 int32_t request_id) OVERRIDE; 147 const PP_DecryptedBlockInfo* block_info) OVERRIDE;
144 #endif // !defined(OS_NACL) 148 #endif // !defined(OS_NACL)
145 149
146 static const ApiID kApiID = API_ID_PPB_INSTANCE; 150 static const ApiID kApiID = API_ID_PPB_INSTANCE;
147 151
148 private: 152 private:
149 // Plugin -> Host message handlers. 153 // Plugin -> Host message handlers.
150 void OnHostMsgGetWindowObject(PP_Instance instance, 154 void OnHostMsgGetWindowObject(PP_Instance instance,
151 SerializedVarReturnValue result); 155 SerializedVarReturnValue result);
152 void OnHostMsgGetOwnerElementObject(PP_Instance instance, 156 void OnHostMsgGetOwnerElementObject(PP_Instance instance,
153 SerializedVarReturnValue result); 157 SerializedVarReturnValue result);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 SerializedVarReceiveInput session_id, 230 SerializedVarReceiveInput session_id,
227 PP_Resource message, 231 PP_Resource message,
228 SerializedVarReceiveInput default_url); 232 SerializedVarReceiveInput default_url);
229 virtual void OnHostMsgKeyError(PP_Instance instance, 233 virtual void OnHostMsgKeyError(PP_Instance instance,
230 SerializedVarReceiveInput key_system, 234 SerializedVarReceiveInput key_system,
231 SerializedVarReceiveInput session_id, 235 SerializedVarReceiveInput session_id,
232 int32_t media_error, 236 int32_t media_error,
233 int32_t system_code); 237 int32_t system_code);
234 virtual void OnHostMsgDeliverBlock(PP_Instance instance, 238 virtual void OnHostMsgDeliverBlock(PP_Instance instance,
235 PP_Resource decrypted_block, 239 PP_Resource decrypted_block,
236 int32_t request_id); 240 const std::string& serialized_block_info);
237 virtual void OnHostMsgDeliverFrame(PP_Instance instance, 241 virtual void OnHostMsgDeliverFrame(PP_Instance instance,
238 PP_Resource decrypted_frame, 242 PP_Resource decrypted_frame,
239 int32_t request_id); 243 const std::string& serialized_block_info);
240 virtual void OnHostMsgDeliverSamples(PP_Instance instance, 244 virtual void OnHostMsgDeliverSamples(
241 PP_Resource decrypted_samples, 245 PP_Instance instance,
242 int32_t request_id); 246 PP_Resource decrypted_samples,
247 const std::string& serialized_block_info);
243 #endif // !defined(OS_NACL) 248 #endif // !defined(OS_NACL)
244 249
245 // Host -> Plugin message handlers. 250 // Host -> Plugin message handlers.
246 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); 251 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result);
247 252
248 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); 253 void MouseLockCompleteInHost(int32_t result, PP_Instance instance);
249 254
250 // Other helpers. 255 // Other helpers.
251 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); 256 void CancelAnyPendingRequestSurroundingText(PP_Instance instance);
252 257
253 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; 258 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_;
254 }; 259 };
255 260
256 } // namespace proxy 261 } // namespace proxy
257 } // namespace ppapi 262 } // namespace ppapi
258 263
259 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 264 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698