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

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

Issue 10386145: Add the necessary plumbing mechanisms to ensure proper WebGL support inside the <browser> tag, whic… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Shuffle EnterResource back out of the thunk layer 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
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 15 matching lines...) Expand all
26 struct PP_Flash_Menu; 26 struct PP_Flash_Menu;
27 struct PP_BrowserFont_Trusted_Description; 27 struct PP_BrowserFont_Trusted_Description;
28 struct PP_Size; 28 struct PP_Size;
29 29
30 namespace ppapi { 30 namespace ppapi {
31 31
32 struct PPB_URLRequestInfo_Data; 32 struct PPB_URLRequestInfo_Data;
33 33
34 namespace thunk { 34 namespace thunk {
35 35
36 class PPB_Graphics3D_API;
Fady Samuel 2012/05/28 14:11:45 Do we need this?
37
36 // A functional API for creating resource types. Separating out the creation 38 // A functional API for creating resource types. Separating out the creation
37 // functions here allows us to implement most resources as a pure "resource 39 // functions here allows us to implement most resources as a pure "resource
38 // API", meaning all calls are routed on a per-resource-object basis. The 40 // API", meaning all calls are routed on a per-resource-object basis. The
39 // creation functions are not per-object (since there's no object during 41 // creation functions are not per-object (since there's no object during
40 // creation) so need functional routing based on the instance ID. 42 // creation) so need functional routing based on the instance ID.
41 class ResourceCreationAPI { 43 class ResourceCreationAPI {
42 public: 44 public:
43 virtual ~ResourceCreationAPI() {} 45 virtual ~ResourceCreationAPI() {}
44 46
45 virtual PP_Resource CreateFileIO(PP_Instance instance) = 0; 47 virtual PP_Resource CreateFileIO(PP_Instance instance) = 0;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 virtual PP_Resource CreateX509CertificatePrivate(PP_Instance instance) = 0; 155 virtual PP_Resource CreateX509CertificatePrivate(PP_Instance instance) = 0;
154 #endif // !defined(OS_NACL) 156 #endif // !defined(OS_NACL)
155 157
156 static const ApiID kApiID = API_ID_RESOURCE_CREATION; 158 static const ApiID kApiID = API_ID_RESOURCE_CREATION;
157 }; 159 };
158 160
159 } // namespace thunk 161 } // namespace thunk
160 } // namespace ppapi 162 } // namespace ppapi
161 163
162 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ 164 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698