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

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

Issue 10168026: Delete FunctionGroupBase from Pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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_graphics_3d_proxy.cc ('k') | ppapi/proxy/ppb_instance_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_PPB_INSTANCE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
7 7
8 #include "ppapi/c/pp_instance.h" 8 #include "ppapi/c/pp_instance.h"
9 #include "ppapi/c/pp_resource.h" 9 #include "ppapi/c/pp_resource.h"
10 #include "ppapi/c/pp_time.h" 10 #include "ppapi/c/pp_time.h"
11 #include "ppapi/c/pp_var.h" 11 #include "ppapi/c/pp_var.h"
12 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
13 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" 13 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
14 #include "ppapi/shared_impl/function_group_base.h"
15 #include "ppapi/shared_impl/host_resource.h" 14 #include "ppapi/shared_impl/host_resource.h"
16 #include "ppapi/shared_impl/ppb_instance_shared.h" 15 #include "ppapi/shared_impl/ppb_instance_shared.h"
17 #include "ppapi/thunk/ppb_instance_api.h" 16 #include "ppapi/thunk/ppb_instance_api.h"
18 #include "ppapi/utility/completion_callback_factory.h" 17 #include "ppapi/utility/completion_callback_factory.h"
19 18
20 // Windows headers interfere with this file. 19 // Windows headers interfere with this file.
21 #ifdef PostMessage 20 #ifdef PostMessage
22 #undef PostMessage 21 #undef PostMessage
23 #endif 22 #endif
24 23
25 namespace ppapi { 24 namespace ppapi {
26 namespace proxy { 25 namespace proxy {
27 26
28 class SerializedVarReceiveInput; 27 class SerializedVarReceiveInput;
29 class SerializedVarOutParam; 28 class SerializedVarOutParam;
30 class SerializedVarReturnValue; 29 class SerializedVarReturnValue;
31 30
32 class PPB_Instance_Proxy : public InterfaceProxy, 31 class PPB_Instance_Proxy : public InterfaceProxy,
33 public PPB_Instance_Shared { 32 public PPB_Instance_Shared {
34 public: 33 public:
35 PPB_Instance_Proxy(Dispatcher* dispatcher); 34 PPB_Instance_Proxy(Dispatcher* dispatcher);
36 virtual ~PPB_Instance_Proxy(); 35 virtual ~PPB_Instance_Proxy();
37 36
38 static const Info* GetInfoPrivate(); 37 static const Info* GetInfoPrivate();
39 38
40 // InterfaceProxy implementation. 39 // InterfaceProxy implementation.
41 virtual bool OnMessageReceived(const IPC::Message& msg); 40 virtual bool OnMessageReceived(const IPC::Message& msg);
42 41
43 // FunctionGroupBase overrides. 42 // PPB_Instance_API implementation.
44 ppapi::thunk::PPB_Instance_FunctionAPI* AsPPB_Instance_FunctionAPI() OVERRIDE;
45
46 // PPB_Instance_FunctionAPI implementation.
47 virtual PP_Bool BindGraphics(PP_Instance instance, 43 virtual PP_Bool BindGraphics(PP_Instance instance,
48 PP_Resource device) OVERRIDE; 44 PP_Resource device) OVERRIDE;
49 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; 45 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE;
50 virtual const ViewData* GetViewData(PP_Instance instance) OVERRIDE; 46 virtual const ViewData* GetViewData(PP_Instance instance) OVERRIDE;
51 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; 47 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE;
52 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; 48 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE;
53 virtual PP_Var ExecuteScript(PP_Instance instance, 49 virtual PP_Var ExecuteScript(PP_Instance instance,
54 PP_Var script, 50 PP_Var script,
55 PP_Var* exception) OVERRIDE; 51 PP_Var* exception) OVERRIDE;
56 virtual uint32_t GetAudioHardwareOutputSampleRate(PP_Instance instance) 52 virtual uint32_t GetAudioHardwareOutputSampleRate(PP_Instance instance)
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); 189 void MouseLockCompleteInHost(int32_t result, PP_Instance instance);
194 190
195 pp::CompletionCallbackFactory<PPB_Instance_Proxy, 191 pp::CompletionCallbackFactory<PPB_Instance_Proxy,
196 ProxyNonThreadSafeRefCount> callback_factory_; 192 ProxyNonThreadSafeRefCount> callback_factory_;
197 }; 193 };
198 194
199 } // namespace proxy 195 } // namespace proxy
200 } // namespace ppapi 196 } // namespace ppapi
201 197
202 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 198 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_graphics_3d_proxy.cc ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698