OLD | NEW |
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_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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 public thunk::ResourceCreationAPI { | 30 public thunk::ResourceCreationAPI { |
31 public: | 31 public: |
32 explicit ResourceCreationProxy(Dispatcher* dispatcher); | 32 explicit ResourceCreationProxy(Dispatcher* dispatcher); |
33 virtual ~ResourceCreationProxy(); | 33 virtual ~ResourceCreationProxy(); |
34 | 34 |
35 // Factory function used for registration (normal code can just use the | 35 // Factory function used for registration (normal code can just use the |
36 // constructor). | 36 // constructor). |
37 static InterfaceProxy* Create(Dispatcher* dispatcher); | 37 static InterfaceProxy* Create(Dispatcher* dispatcher); |
38 | 38 |
39 // ResourceCreationAPI (called in plugin). | 39 // ResourceCreationAPI (called in plugin). |
| 40 virtual PP_Resource CreateDirectoryReader(PP_Instance instance, |
| 41 PP_Resource directory_ref) OVERRIDE; |
40 virtual PP_Resource CreateFileIO(PP_Instance instance) OVERRIDE; | 42 virtual PP_Resource CreateFileIO(PP_Instance instance) OVERRIDE; |
41 virtual PP_Resource CreateFileRef(PP_Resource file_system, | 43 virtual PP_Resource CreateFileRef(PP_Resource file_system, |
42 const char* path) OVERRIDE; | 44 const char* path) OVERRIDE; |
43 virtual PP_Resource CreateFileSystem(PP_Instance instance, | 45 virtual PP_Resource CreateFileSystem(PP_Instance instance, |
44 PP_FileSystemType type) OVERRIDE; | 46 PP_FileSystemType type) OVERRIDE; |
45 virtual PP_Resource CreateIMEInputEvent(PP_Instance instance, | 47 virtual PP_Resource CreateIMEInputEvent(PP_Instance instance, |
46 PP_InputEvent_Type type, | 48 PP_InputEvent_Type type, |
47 PP_TimeTicks time_stamp, | 49 PP_TimeTicks time_stamp, |
48 struct PP_Var text, | 50 struct PP_Var text, |
49 uint32_t segment_number, | 51 uint32_t segment_number, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 virtual PP_Resource CreateX509CertificatePrivate( | 138 virtual PP_Resource CreateX509CertificatePrivate( |
137 PP_Instance instance) OVERRIDE; | 139 PP_Instance instance) OVERRIDE; |
138 #if !defined(OS_NACL) | 140 #if !defined(OS_NACL) |
139 virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE; | 141 virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE; |
140 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; | 142 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; |
141 virtual PP_Resource CreateBrowserFont( | 143 virtual PP_Resource CreateBrowserFont( |
142 PP_Instance instance, | 144 PP_Instance instance, |
143 const PP_BrowserFont_Trusted_Description* description) OVERRIDE; | 145 const PP_BrowserFont_Trusted_Description* description) OVERRIDE; |
144 virtual PP_Resource CreateBuffer(PP_Instance instance, | 146 virtual PP_Resource CreateBuffer(PP_Instance instance, |
145 uint32_t size) OVERRIDE; | 147 uint32_t size) OVERRIDE; |
146 virtual PP_Resource CreateDirectoryReader( | |
147 PP_Instance instance, | |
148 PP_Resource directory_ref) OVERRIDE; | |
149 virtual PP_Resource CreateFlashDeviceID(PP_Instance instance) OVERRIDE; | 148 virtual PP_Resource CreateFlashDeviceID(PP_Instance instance) OVERRIDE; |
150 virtual PP_Resource CreateFlashFontFile( | 149 virtual PP_Resource CreateFlashFontFile( |
151 PP_Instance instance, | 150 PP_Instance instance, |
152 const PP_BrowserFont_Trusted_Description* description, | 151 const PP_BrowserFont_Trusted_Description* description, |
153 PP_PrivateFontCharset charset) OVERRIDE; | 152 PP_PrivateFontCharset charset) OVERRIDE; |
154 virtual PP_Resource CreateFlashMenu(PP_Instance instance, | 153 virtual PP_Resource CreateFlashMenu(PP_Instance instance, |
155 const PP_Flash_Menu* menu_data) OVERRIDE; | 154 const PP_Flash_Menu* menu_data) OVERRIDE; |
156 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) OVERRIDE; | 155 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) OVERRIDE; |
157 virtual PP_Resource CreateScrollbar(PP_Instance instance, | 156 virtual PP_Resource CreateScrollbar(PP_Instance instance, |
158 PP_Bool vertical) OVERRIDE; | 157 PP_Bool vertical) OVERRIDE; |
(...skipping 10 matching lines...) Expand all Loading... |
169 | 168 |
170 private: | 169 private: |
171 Connection GetConnection(); | 170 Connection GetConnection(); |
172 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); | 171 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); |
173 }; | 172 }; |
174 | 173 |
175 } // namespace proxy | 174 } // namespace proxy |
176 } // namespace ppapi | 175 } // namespace ppapi |
177 | 176 |
178 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 177 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
OLD | NEW |