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_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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 namespace gpu { | 38 namespace gpu { |
39 namespace gles2 { | 39 namespace gles2 { |
40 struct ContextCreationAttribHelper; | 40 struct ContextCreationAttribHelper; |
41 } | 41 } |
42 struct Capabilities; | 42 struct Capabilities; |
43 } | 43 } |
44 | 44 |
45 namespace ppapi { | 45 namespace ppapi { |
46 | 46 |
47 struct FileRefCreateInfo; | 47 struct FileRefCreateInfo; |
48 struct URLRequestInfoData; | |
49 struct URLResponseInfoData; | |
50 | 48 |
51 namespace thunk { | 49 namespace thunk { |
52 | 50 |
53 // A functional API for creating resource types. Separating out the creation | 51 // A functional API for creating resource types. Separating out the creation |
54 // functions here allows us to implement most resources as a pure "resource | 52 // functions here allows us to implement most resources as a pure "resource |
55 // API", meaning all calls are routed on a per-resource-object basis. The | 53 // API", meaning all calls are routed on a per-resource-object basis. The |
56 // creation functions are not per-object (since there's no object during | 54 // creation functions are not per-object (since there's no object during |
57 // creation) so need functional routing based on the instance ID. | 55 // creation) so need functional routing based on the instance ID. |
58 class ResourceCreationAPI { | 56 class ResourceCreationAPI { |
59 public: | 57 public: |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 PP_VideoDecoder_Profile profile) = 0; | 207 PP_VideoDecoder_Profile profile) = 0; |
210 #endif // !defined(OS_NACL) | 208 #endif // !defined(OS_NACL) |
211 | 209 |
212 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 210 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
213 }; | 211 }; |
214 | 212 |
215 } // namespace thunk | 213 } // namespace thunk |
216 } // namespace ppapi | 214 } // namespace ppapi |
217 | 215 |
218 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 216 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
OLD | NEW |