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

Side by Side Diff: ppapi/thunk/interfaces_ppb_public_stable.h

Issue 8764003: Implement a proxy for Pepper FileIO. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed. Created 9 years 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
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 #include "ppapi/thunk/interfaces_preamble.h" 5 #include "ppapi/thunk/interfaces_preamble.h"
6 6
7 // This file contains lists of interfaces. It's intended to be included by 7 // This file contains lists of interfaces. It's intended to be included by
8 // another file which defines implementations of the macros. This allows files 8 // another file which defines implementations of the macros. This allows files
9 // to do specific registration tasks for each supported interface. 9 // to do specific registration tasks for each supported interface.
10 10
11 11
12 // Api categories 12 // Api categories
13 // -------------- 13 // --------------
14 // Enumerates the categories of APIs. These correspnd to the *_api.h files in 14 // Enumerates the categories of APIs. These correspnd to the *_api.h files in
15 // this directory. One API may implement one or more actual interfaces. 15 // this directory. One API may implement one or more actual interfaces.
16 // 16 //
17 // For PROXIED_APIs, these also correspond to *_Proxy objects. The proxied ones 17 // For PROXIED_APIs, these also correspond to *_Proxy objects. The proxied ones
18 // define factory functions for each of these classes. UNPROXIED_APIs are ones 18 // define factory functions for each of these classes. UNPROXIED_APIs are ones
19 // that exist in the webkit/plugins/ppapi/*_impl.h, but not in the proxy. 19 // that exist in the webkit/plugins/ppapi/*_impl.h, but not in the proxy.
20 PROXIED_API(PPB_Audio) 20 PROXIED_API(PPB_Audio)
21 // AudioConfig isn't proxied in the normal way, we have only local classes and 21 // AudioConfig isn't proxied in the normal way, we have only local classes and
22 // serialize it to a struct when we need it on the host side. 22 // serialize it to a struct when we need it on the host side.
23 UNPROXIED_API(PPB_AudioConfig) 23 UNPROXIED_API(PPB_AudioConfig)
24 PROXIED_API(PPB_Core) 24 PROXIED_API(PPB_Core)
25 UNPROXIED_API(PPB_FileIO) 25 PROXIED_API(PPB_FileIO)
26 PROXIED_API(PPB_FileRef) 26 PROXIED_API(PPB_FileRef)
27 PROXIED_API(PPB_FileSystem) 27 PROXIED_API(PPB_FileSystem)
28 PROXIED_API(PPB_Graphics2D) 28 PROXIED_API(PPB_Graphics2D)
29 UNPROXIED_API(PPB_ImageData) 29 UNPROXIED_API(PPB_ImageData)
30 PROXIED_API(PPB_Instance) 30 PROXIED_API(PPB_Instance)
31 PROXIED_API(PPB_URLLoader) 31 PROXIED_API(PPB_URLLoader)
32 PROXIED_API(PPB_URLResponseInfo) 32 PROXIED_API(PPB_URLResponseInfo)
33 33
34 // Interfaces 34 // Interfaces
35 // ---------- 35 // ----------
36 // Enumerates interfaces as (api_name, interface_name, interface_struct). 36 // Enumerates interfaces as (api_name, interface_name, interface_struct).
37 // 37 //
38 // The api_name corresponds to the class in the list above for the object 38 // The api_name corresponds to the class in the list above for the object
39 // that implements the API. Some things may be special and aren't implemented 39 // that implements the API. Some things may be special and aren't implemented
40 // by any specific API object, and we use "NoAPIName" for those. Implementors 40 // by any specific API object, and we use "NoAPIName" for those. Implementors
41 // of these macros should handle this case. There can be more than one line 41 // of these macros should handle this case. There can be more than one line
42 // referring to the same api_name (typically different versions of the 42 // referring to the same api_name (typically different versions of the
43 // same interface). 43 // same interface).
44 // 44 //
45 // The interface_name is the string that corresponds to the interface. 45 // The interface_name is the string that corresponds to the interface.
46 // 46 //
47 // The interface_struct is the typename of the struct corresponding to the 47 // The interface_struct is the typename of the struct corresponding to the
48 // interface string. 48 // interface string.
49 PROXIED_IFACE(PPB_Audio, PPB_AUDIO_INTERFACE_1_0, PPB_Audio) 49 PROXIED_IFACE(PPB_Audio, PPB_AUDIO_INTERFACE_1_0, PPB_Audio)
50 // This has no corresponding _Proxy object since it does no IPC. 50 // This has no corresponding _Proxy object since it does no IPC.
51 PROXIED_IFACE(NoAPIName, PPB_AUDIO_CONFIG_INTERFACE_1_0, PPB_AudioConfig) 51 PROXIED_IFACE(NoAPIName, PPB_AUDIO_CONFIG_INTERFACE_1_0, PPB_AudioConfig)
52 // Note: Core is special and is registered manually. 52 // Note: Core is special and is registered manually.
53 UNPROXIED_IFACE(PPB_FileIO, PPB_FILEIO_INTERFACE_1_0, PPB_FileIO) 53 PROXIED_IFACE(PPB_FileIO, PPB_FILEIO_INTERFACE_1_0, PPB_FileIO)
54 PROXIED_IFACE(PPB_FileRef, PPB_FILEREF_INTERFACE_1_0, PPB_FileRef) 54 PROXIED_IFACE(PPB_FileRef, PPB_FILEREF_INTERFACE_1_0, PPB_FileRef)
55 PROXIED_IFACE(PPB_FileSystem, PPB_FILESYSTEM_INTERFACE_1_0, PPB_FileSystem) 55 PROXIED_IFACE(PPB_FileSystem, PPB_FILESYSTEM_INTERFACE_1_0, PPB_FileSystem)
56 PROXIED_IFACE(PPB_Graphics2D, PPB_GRAPHICS_2D_INTERFACE_1_0, PPB_Graphics2D) 56 PROXIED_IFACE(PPB_Graphics2D, PPB_GRAPHICS_2D_INTERFACE_1_0, PPB_Graphics2D)
57 PROXIED_IFACE(PPB_Graphics3D, PPB_GRAPHICS_3D_INTERFACE_1_0, PPB_Graphics3D) 57 PROXIED_IFACE(PPB_Graphics3D, PPB_GRAPHICS_3D_INTERFACE_1_0, PPB_Graphics3D)
58 // ImageData doesn't have a normal _Proxy object since it only uses Create 58 // ImageData doesn't have a normal _Proxy object since it only uses Create
59 // to proxy, and that happens in the ResourceCreationAPI. 59 // to proxy, and that happens in the ResourceCreationAPI.
60 PROXIED_IFACE(NoAPIName, PPB_IMAGEDATA_INTERFACE_1_0, PPB_ImageData) 60 PROXIED_IFACE(NoAPIName, PPB_IMAGEDATA_INTERFACE_1_0, PPB_ImageData)
61 PROXIED_IFACE(PPB_Instance, PPB_INSTANCE_INTERFACE_1_0, PPB_Instance) 61 PROXIED_IFACE(PPB_Instance, PPB_INSTANCE_INTERFACE_1_0, PPB_Instance)
62 PROXIED_IFACE(NoAPIName, PPB_INPUT_EVENT_INTERFACE_1_0, PPB_InputEvent) 62 PROXIED_IFACE(NoAPIName, PPB_INPUT_EVENT_INTERFACE_1_0, PPB_InputEvent)
63 PROXIED_IFACE(NoAPIName, PPB_KEYBOARD_INPUT_EVENT_INTERFACE_1_0, 63 PROXIED_IFACE(NoAPIName, PPB_KEYBOARD_INPUT_EVENT_INTERFACE_1_0,
64 PPB_KeyboardInputEvent) 64 PPB_KeyboardInputEvent)
65 PROXIED_IFACE(NoAPIName, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0, 65 PROXIED_IFACE(NoAPIName, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0,
66 PPB_MouseInputEvent_1_0) 66 PPB_MouseInputEvent_1_0)
67 PROXIED_IFACE(NoAPIName, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1, 67 PROXIED_IFACE(NoAPIName, PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1,
68 PPB_MouseInputEvent) 68 PPB_MouseInputEvent)
69 PROXIED_IFACE(NoAPIName, PPB_WHEEL_INPUT_EVENT_INTERFACE_1_0, 69 PROXIED_IFACE(NoAPIName, PPB_WHEEL_INPUT_EVENT_INTERFACE_1_0,
70 PPB_WheelInputEvent) 70 PPB_WheelInputEvent)
71 PROXIED_IFACE(PPB_Instance, PPB_FULLSCREEN_INTERFACE_1_0, PPB_Fullscreen) 71 PROXIED_IFACE(PPB_Instance, PPB_FULLSCREEN_INTERFACE_1_0, PPB_Fullscreen)
72 PROXIED_IFACE(PPB_Instance, PPB_MESSAGING_INTERFACE_1_0, PPB_Messaging) 72 PROXIED_IFACE(PPB_Instance, PPB_MESSAGING_INTERFACE_1_0, PPB_Messaging)
73 PROXIED_IFACE(PPB_Instance, PPB_MOUSELOCK_INTERFACE_1_0, PPB_MouseLock) 73 PROXIED_IFACE(PPB_Instance, PPB_MOUSELOCK_INTERFACE_1_0, PPB_MouseLock)
74 PROXIED_IFACE(PPB_URLLoader, PPB_URLLOADER_INTERFACE_1_0, PPB_URLLoader) 74 PROXIED_IFACE(PPB_URLLoader, PPB_URLLOADER_INTERFACE_1_0, PPB_URLLoader)
75 PROXIED_IFACE(NoAPIName, PPB_URLREQUESTINFO_INTERFACE_1_0, PPB_URLRequestInfo) 75 PROXIED_IFACE(NoAPIName, PPB_URLREQUESTINFO_INTERFACE_1_0, PPB_URLRequestInfo)
76 PROXIED_IFACE(PPB_URLResponseInfo, PPB_URLRESPONSEINFO_INTERFACE_1_0, 76 PROXIED_IFACE(PPB_URLResponseInfo, PPB_URLRESPONSEINFO_INTERFACE_1_0,
77 PPB_URLResponseInfo) 77 PPB_URLResponseInfo)
78 // Note: PPB_Var is special and registered manually. 78 // Note: PPB_Var is special and registered manually.
79 79
80 #include "ppapi/thunk/interfaces_postamble.h" 80 #include "ppapi/thunk/interfaces_postamble.h"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698