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

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

Issue 10913257: Convert url request info to new proxy API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 3 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/thunk/ppb_url_request_info_thunk.cc ('k') | webkit/glue/webkit_glue.gypi » ('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_THUNK_RESOURCE_CREATION_API_H_ 5 #ifndef PPAPI_THUNK_RESOURCE_CREATION_API_H_
6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_
7 7
8 #include "ppapi/c/dev/ppb_audio_input_dev.h" 8 #include "ppapi/c/dev/ppb_audio_input_dev.h"
9 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 9 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
10 #include "ppapi/c/dev/ppb_video_layer_dev.h" 10 #include "ppapi/c/dev/ppb_video_layer_dev.h"
(...skipping 10 matching lines...) Expand all
21 #include "ppapi/c/dev/pp_video_dev.h" 21 #include "ppapi/c/dev/pp_video_dev.h"
22 #include "ppapi/c/private/ppb_network_monitor_private.h" 22 #include "ppapi/c/private/ppb_network_monitor_private.h"
23 #include "ppapi/shared_impl/api_id.h" 23 #include "ppapi/shared_impl/api_id.h"
24 24
25 struct PP_Flash_Menu; 25 struct PP_Flash_Menu;
26 struct PP_BrowserFont_Trusted_Description; 26 struct PP_BrowserFont_Trusted_Description;
27 struct PP_Size; 27 struct PP_Size;
28 28
29 namespace ppapi { 29 namespace ppapi {
30 30
31 struct PPB_URLRequestInfo_Data; 31 struct URLRequestInfoData;
32 32
33 namespace thunk { 33 namespace thunk {
34 34
35 // A functional API for creating resource types. Separating out the creation 35 // A functional API for creating resource types. Separating out the creation
36 // functions here allows us to implement most resources as a pure "resource 36 // functions here allows us to implement most resources as a pure "resource
37 // API", meaning all calls are routed on a per-resource-object basis. The 37 // API", meaning all calls are routed on a per-resource-object basis. The
38 // creation functions are not per-object (since there's no object during 38 // creation functions are not per-object (since there's no object during
39 // creation) so need functional routing based on the instance ID. 39 // creation) so need functional routing based on the instance ID.
40 class ResourceCreationAPI { 40 class ResourceCreationAPI {
41 public: 41 public:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 PP_Instance instance, 75 PP_Instance instance,
76 PP_InputEvent_Type type, 76 PP_InputEvent_Type type,
77 PP_TimeTicks time_stamp, 77 PP_TimeTicks time_stamp,
78 uint32_t modifiers) = 0; 78 uint32_t modifiers) = 0;
79 virtual PP_Resource CreateResourceArray(PP_Instance instance, 79 virtual PP_Resource CreateResourceArray(PP_Instance instance,
80 const PP_Resource elements[], 80 const PP_Resource elements[],
81 uint32_t size) = 0; 81 uint32_t size) = 0;
82 virtual PP_Resource CreateURLLoader(PP_Instance instance) = 0; 82 virtual PP_Resource CreateURLLoader(PP_Instance instance) = 0;
83 virtual PP_Resource CreateURLRequestInfo( 83 virtual PP_Resource CreateURLRequestInfo(
84 PP_Instance instance, 84 PP_Instance instance,
85 const PPB_URLRequestInfo_Data& data) = 0; 85 const URLRequestInfoData& data) = 0;
86 virtual PP_Resource CreateWheelInputEvent( 86 virtual PP_Resource CreateWheelInputEvent(
87 PP_Instance instance, 87 PP_Instance instance,
88 PP_TimeTicks time_stamp, 88 PP_TimeTicks time_stamp,
89 uint32_t modifiers, 89 uint32_t modifiers,
90 const PP_FloatPoint* wheel_delta, 90 const PP_FloatPoint* wheel_delta,
91 const PP_FloatPoint* wheel_ticks, 91 const PP_FloatPoint* wheel_ticks,
92 PP_Bool scroll_by_page) = 0; 92 PP_Bool scroll_by_page) = 0;
93 93
94 virtual PP_Resource CreateAudio(PP_Instance instance, 94 virtual PP_Resource CreateAudio(PP_Instance instance,
95 PP_Resource config_id, 95 PP_Resource config_id,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 virtual PP_Resource CreateWebSocket(PP_Instance instance) = 0; 160 virtual PP_Resource CreateWebSocket(PP_Instance instance) = 0;
161 #endif // !defined(OS_NACL) 161 #endif // !defined(OS_NACL)
162 162
163 static const ApiID kApiID = API_ID_RESOURCE_CREATION; 163 static const ApiID kApiID = API_ID_RESOURCE_CREATION;
164 }; 164 };
165 165
166 } // namespace thunk 166 } // namespace thunk
167 } // namespace ppapi 167 } // namespace ppapi
168 168
169 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ 169 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_url_request_info_thunk.cc ('k') | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698