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

Unified Diff: ppapi/proxy/resource_creation_proxy.h

Issue 7844018: Revert 100748 - This patch tries to remove most of the manual registration for Pepper interfaces,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/ppp_video_decoder_proxy.cc ('k') | ppapi/proxy/resource_creation_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/resource_creation_proxy.h
===================================================================
--- ppapi/proxy/resource_creation_proxy.h (revision 100753)
+++ ppapi/proxy/resource_creation_proxy.h (working copy)
@@ -11,8 +11,8 @@
#include "ipc/ipc_channel.h"
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
-#include "ppapi/proxy/interface_proxy.h"
#include "ppapi/proxy/serialized_structs.h"
+#include "ppapi/shared_impl/function_group_base.h"
#include "ppapi/thunk/resource_creation_api.h"
struct PP_Size;
@@ -25,16 +25,14 @@
class Dispatcher;
-class ResourceCreationProxy : public InterfaceProxy,
- public thunk::ResourceCreationAPI {
+class ResourceCreationProxy : public FunctionGroupBase,
+ public thunk::ResourceCreationAPI,
+ public IPC::Channel::Listener,
+ public IPC::Message::Sender {
public:
explicit ResourceCreationProxy(Dispatcher* dispatcher);
virtual ~ResourceCreationProxy();
- // Factory function used for registration (normal code can just use the
- // constructor).
- static InterfaceProxy* Create(Dispatcher* dispatcher);
-
virtual thunk::ResourceCreationAPI* AsResourceCreationAPI() OVERRIDE;
// ResourceCreationAPI (called in plugin).
@@ -151,6 +149,8 @@
std::string* image_data_desc,
ImageHandle* result_image_handle);
+ Dispatcher* dispatcher_;
+
DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy);
};
« no previous file with comments | « ppapi/proxy/ppp_video_decoder_proxy.cc ('k') | ppapi/proxy/resource_creation_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698