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

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

Issue 6286070: Remove all uses of the global Dispatcher Get function. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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_context_3d_proxy.cc ('k') | ppapi/proxy/ppb_core_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_CORE_PROXY_H_ 5 #ifndef PPAPI_PPB_CORE_PROXY_H_
6 #define PPAPI_PPB_CORE_PROXY_H_ 6 #define PPAPI_PPB_CORE_PROXY_H_
7 7
8 #include "ppapi/c/pp_completion_callback.h" 8 #include "ppapi/c/pp_completion_callback.h"
9 #include "ppapi/c/pp_resource.h" 9 #include "ppapi/c/pp_resource.h"
10 #include "ppapi/c/pp_var.h" 10 #include "ppapi/c/pp_var.h"
11 #include "ppapi/proxy/host_resource.h" 11 #include "ppapi/proxy/host_resource.h"
12 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
13 13
14 struct PPB_Core; 14 struct PPB_Core;
15 15
16 namespace pp { 16 namespace pp {
17 namespace proxy { 17 namespace proxy {
18 18
19 class PPB_Core_Proxy : public InterfaceProxy { 19 class PPB_Core_Proxy : public InterfaceProxy {
20 public: 20 public:
21 PPB_Core_Proxy(Dispatcher* dispatcher, const void* target_interface); 21 PPB_Core_Proxy(Dispatcher* dispatcher, const void* target_interface);
22 virtual ~PPB_Core_Proxy(); 22 virtual ~PPB_Core_Proxy();
23 23
24 static const Info* GetInfo();
25
24 const PPB_Core* ppb_core_target() const { 26 const PPB_Core* ppb_core_target() const {
25 return reinterpret_cast<const PPB_Core*>(target_interface()); 27 return reinterpret_cast<const PPB_Core*>(target_interface());
26 } 28 }
27 29
28 // InterfaceProxy implementation. 30 // InterfaceProxy implementation.
29 virtual const void* GetSourceInterface() const;
30 virtual InterfaceID GetInterfaceId() const;
31 virtual bool OnMessageReceived(const IPC::Message& msg); 31 virtual bool OnMessageReceived(const IPC::Message& msg);
32 32
33 private: 33 private:
34 // Message handlers. 34 // Message handlers.
35 void OnMsgAddRefResource(HostResource resource); 35 void OnMsgAddRefResource(HostResource resource);
36 void OnMsgReleaseResource(HostResource resource); 36 void OnMsgReleaseResource(HostResource resource);
37 }; 37 };
38 38
39 } // namespace proxy 39 } // namespace proxy
40 } // namespace pp 40 } // namespace pp
41 41
42 #endif // PPAPI_PPB_CORE_PROXY_H_ 42 #endif // PPAPI_PPB_CORE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_context_3d_proxy.cc ('k') | ppapi/proxy/ppb_core_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698