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

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

Issue 10815073: Refactoring of new IPC-only pepper implementation (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_proxy_test.cc ('k') | ppapi/proxy/resource_creation_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_RESOURCE_CREATION_PROXY_H_ 5 #ifndef PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_
6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ 6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "ipc/ipc_channel.h" 11 #include "ipc/ipc_channel.h"
12 #include "ppapi/c/pp_bool.h" 12 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_instance.h" 13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/proxy/interface_proxy.h" 14 #include "ppapi/proxy/interface_proxy.h"
15 #include "ppapi/proxy/serialized_structs.h" 15 #include "ppapi/proxy/serialized_structs.h"
16 #include "ppapi/thunk/resource_creation_api.h" 16 #include "ppapi/thunk/resource_creation_api.h"
17 17
18 struct PP_Size; 18 struct PP_Size;
19 19
20 namespace ppapi { 20 namespace ppapi {
21 21
22 class HostResource; 22 class HostResource;
23 23
24 namespace proxy { 24 namespace proxy {
25 25
26 struct Connection;
26 class Dispatcher; 27 class Dispatcher;
27 28
28 class ResourceCreationProxy : public InterfaceProxy, 29 class ResourceCreationProxy : public InterfaceProxy,
29 public thunk::ResourceCreationAPI { 30 public thunk::ResourceCreationAPI {
30 public: 31 public:
31 explicit ResourceCreationProxy(Dispatcher* dispatcher); 32 explicit ResourceCreationProxy(Dispatcher* dispatcher);
32 virtual ~ResourceCreationProxy(); 33 virtual ~ResourceCreationProxy();
33 34
34 // Factory function used for registration (normal code can just use the 35 // Factory function used for registration (normal code can just use the
35 // constructor). 36 // constructor).
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 PP_VideoLayerMode_Dev mode) OVERRIDE; 156 PP_VideoLayerMode_Dev mode) OVERRIDE;
156 virtual PP_Resource CreateWebSocket(PP_Instance instance) OVERRIDE; 157 virtual PP_Resource CreateWebSocket(PP_Instance instance) OVERRIDE;
157 virtual PP_Resource CreateX509CertificatePrivate( 158 virtual PP_Resource CreateX509CertificatePrivate(
158 PP_Instance instance) OVERRIDE; 159 PP_Instance instance) OVERRIDE;
159 #endif // !defined(OS_NACL) 160 #endif // !defined(OS_NACL)
160 161
161 virtual bool Send(IPC::Message* msg) OVERRIDE; 162 virtual bool Send(IPC::Message* msg) OVERRIDE;
162 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 163 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
163 164
164 private: 165 private:
166 Connection GetConnection();
165 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); 167 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy);
166 }; 168 };
167 169
168 } // namespace proxy 170 } // namespace proxy
169 } // namespace ppapi 171 } // namespace ppapi
170 172
171 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ 173 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_proxy_test.cc ('k') | ppapi/proxy/resource_creation_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698