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

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

Issue 7887001: s patch tries to remove most of the manual registration for Pepper interfaces, and replaces it wi... (Closed) Base URL: svn://chrome-svn/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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppb_var_deprecated_proxy.cc ('k') | ppapi/proxy/ppb_var_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PPB_VAR_PROXY_H_ 5 #ifndef PPAPI_PPB_VAR_PROXY_H_
6 #define PPAPI_PPB_VAR_PROXY_H_ 6 #define PPAPI_PPB_VAR_PROXY_H_
7 7
8 #include "ppapi/proxy/ppapi_proxy_export.h"
8 #include "ppapi/proxy/interface_proxy.h" 9 #include "ppapi/proxy/interface_proxy.h"
9 10
10 struct PPB_Var; 11 struct PPB_Var;
11 12
12 namespace ppapi { 13 namespace ppapi {
13 namespace proxy { 14 namespace proxy {
14 15
15 class PPB_Var_Proxy : public InterfaceProxy { 16 // Returns a pointer to the plugin-specific implementation of PPB_Var.
16 public: 17 // There is no proxy object since this is implemented entirely in-process.
17 PPB_Var_Proxy(Dispatcher* dispatcher, 18 PPAPI_PROXY_EXPORT const PPB_Var* GetPPB_Var_Interface();
18 const void* target_interface);
19 virtual ~PPB_Var_Proxy();
20
21 static const Info* GetInfo();
22
23 const PPB_Var* ppb_var_target() const {
24 return static_cast<const PPB_Var*>(target_interface());
25 }
26
27 // InterfaceProxy implementation. In this case, no messages are sent or
28 // received, so this always returns false.
29 virtual bool OnMessageReceived(const IPC::Message& msg);
30
31 };
32 19
33 } // namespace proxy 20 } // namespace proxy
34 } // namespace ppapi 21 } // namespace ppapi
35 22
36 #endif // PPAPI_PPB_VAR_PROXY_H_ 23 #endif // PPAPI_PPB_VAR_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_var_deprecated_proxy.cc ('k') | ppapi/proxy/ppb_var_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698