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

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

Issue 10827280: Add PPAPI decryptor implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Partially address xhwang's comments, and fix some StringVar crashiness 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_
6 #define PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_
7
8 #include "ppapi/c/private/ppp_content_decryptor_private.h"
9 #include "ppapi/c/pp_instance.h"
dmichael (off chromium) 2012/08/15 17:44:37 nit: include order
Tom Finegan 2012/08/16 03:10:48 Done.
10 #include "ppapi/proxy/interface_proxy.h"
11 #include "ppapi/shared_impl/host_resource.h"
12
13 namespace ppapi {
14 namespace proxy {
15
16 class SerializedVarReceiveInput;
17
18 class PPP_ContentDecryptor_Private_Proxy : public InterfaceProxy {
19 public:
20 PPP_ContentDecryptor_Private_Proxy(Dispatcher* dispatcher);
dmichael (off chromium) 2012/08/15 17:44:37 nit: explicit
Tom Finegan 2012/08/16 03:10:48 Done.
21 virtual ~PPP_ContentDecryptor_Private_Proxy();
22
23 static const PPP_ContentDecryptor_Private* GetProxyInterface();
24
25 // InterfaceProxy implementation.
26 virtual bool OnMessageReceived(const IPC::Message& msg);
dmichael (off chromium) 2012/08/15 17:44:37 This could probably be private.
Tom Finegan 2012/08/16 03:10:48 Done.
27
28 private:
29 // Message handlers.
30 void OnMsgGenerateKeyRequest(PP_Instance instance,
31 SerializedVarReceiveInput key_system,
32 SerializedVarReceiveInput init_data);
33 void OnMsgAddKey(PP_Instance instance,
34 SerializedVarReceiveInput session_id,
35 SerializedVarReceiveInput key);
36 void OnMsgCancelKeyRequest(PP_Instance instance,
37 SerializedVarReceiveInput session_id);
38 void OnMsgDecrypt(PP_Instance instance,
39 const HostResource& encrypted_block,
40 int32_t request_id);
41 void OnMsgDecryptAndDecode(PP_Instance instance,
42 const HostResource& encrypted_block,
43 int32_t request_id);
44
45 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_;
46
47 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy);
48 };
49
50 } // namespace proxy
51 } // namespace ppapi
52
53 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698