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

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

Issue 7105013: Convert more interfaces to the new thunk system. This goes up to and including (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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_image_data_proxy.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) 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_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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ipc/ipc_channel.h" 9 #include "ipc/ipc_channel.h"
10 #include "ppapi/c/pp_bool.h" 10 #include "ppapi/c/pp_bool.h"
(...skipping 11 matching lines...) Expand all
22 class Dispatcher; 22 class Dispatcher;
23 23
24 class ResourceCreationProxy : public ::ppapi::FunctionGroupBase, 24 class ResourceCreationProxy : public ::ppapi::FunctionGroupBase,
25 public ::ppapi::thunk::ResourceCreationAPI, 25 public ::ppapi::thunk::ResourceCreationAPI,
26 public ::IPC::Channel::Listener, 26 public ::IPC::Channel::Listener,
27 public IPC::Message::Sender { 27 public IPC::Message::Sender {
28 public: 28 public:
29 ResourceCreationProxy(Dispatcher* dispatcher); 29 ResourceCreationProxy(Dispatcher* dispatcher);
30 virtual ~ResourceCreationProxy(); 30 virtual ~ResourceCreationProxy();
31 31
32 virtual ::ppapi::thunk::ResourceCreationAPI* AsResourceCreation() OVERRIDE; 32 virtual ::ppapi::thunk::ResourceCreationAPI* AsResourceCreationAPI() OVERRIDE;
33 33
34 // ResourceCreationAPI (called in plugin). 34 // ResourceCreationAPI (called in plugin).
35 virtual PP_Resource CreateAudio(PP_Instance instance, 35 virtual PP_Resource CreateAudio(PP_Instance instance,
36 PP_Resource config_id, 36 PP_Resource config_id,
37 PPB_Audio_Callback audio_callback, 37 PPB_Audio_Callback audio_callback,
38 void* user_data) OVERRIDE; 38 void* user_data) OVERRIDE;
39 virtual PP_Resource CreateAudioConfig(PP_Instance instance, 39 virtual PP_Resource CreateAudioConfig(PP_Instance instance,
40 PP_AudioSampleRate sample_rate, 40 PP_AudioSampleRate sample_rate,
41 uint32_t sample_frame_count) OVERRIDE; 41 uint32_t sample_frame_count) OVERRIDE;
42 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; 42 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE;
43 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; 43 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE;
44 virtual PP_Resource CreateBuffer(PP_Instance instance, 44 virtual PP_Resource CreateBuffer(PP_Instance instance,
45 uint32_t size) OVERRIDE; 45 uint32_t size) OVERRIDE;
46 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) OVERRIDE;
47 virtual PP_Resource CreateFileChooser(
48 PP_Instance instance,
49 const PP_FileChooserOptions_Dev* options) OVERRIDE;
50 virtual PP_Resource CreateFileIO(PP_Instance instance) OVERRIDE;
51 virtual PP_Resource CreateFileRef(PP_Resource file_system,
52 const char* path) OVERRIDE;
53 virtual PP_Resource CreateFileSystem(PP_Instance instance,
54 PP_FileSystemType_Dev type) OVERRIDE;
46 virtual PP_Resource CreateFontObject( 55 virtual PP_Resource CreateFontObject(
47 PP_Instance instance, 56 PP_Instance instance,
48 const PP_FontDescription_Dev* description) OVERRIDE; 57 const PP_FontDescription_Dev* description) OVERRIDE;
49 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, 58 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance,
50 const PP_Size& size, 59 const PP_Size& size,
51 PP_Bool is_always_opaque) OVERRIDE; 60 PP_Bool is_always_opaque) OVERRIDE;
52 virtual PP_Resource CreateImageData(PP_Instance instance, 61 virtual PP_Resource CreateImageData(PP_Instance instance,
53 PP_ImageDataFormat format, 62 PP_ImageDataFormat format,
54 const PP_Size& size, 63 const PP_Size& size,
55 PP_Bool init_to_zero) OVERRIDE; 64 PP_Bool init_to_zero) OVERRIDE;
(...skipping 21 matching lines...) Expand all
77 86
78 Dispatcher* dispatcher_; 87 Dispatcher* dispatcher_;
79 88
80 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); 89 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy);
81 }; 90 };
82 91
83 } // namespace proxy 92 } // namespace proxy
84 } // namespace pp 93 } // namespace pp
85 94
86 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ 95 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_image_data_proxy.cc ('k') | ppapi/proxy/resource_creation_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698