| 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_SHARED_IMPL_RESOURCE_H_ | 5 #ifndef PPAPI_SHARED_IMPL_RESOURCE_H_ |
| 6 #define PPAPI_SHARED_IMPL_RESOURCE_H_ | 6 #define PPAPI_SHARED_IMPL_RESOURCE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> // For NULL. | 8 #include <stddef.h> // For NULL. |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 F(PPB_VideoDecoder_API) \ | 83 F(PPB_VideoDecoder_API) \ |
| 84 F(PPB_VideoDecoder_Dev_API) \ | 84 F(PPB_VideoDecoder_Dev_API) \ |
| 85 F(PPB_VideoDestination_Private_API) \ | 85 F(PPB_VideoDestination_Private_API) \ |
| 86 F(PPB_VideoEncoder_API) \ | 86 F(PPB_VideoEncoder_API) \ |
| 87 F(PPB_VideoFrame_API) \ | 87 F(PPB_VideoFrame_API) \ |
| 88 F(PPB_VideoLayer_API) \ | 88 F(PPB_VideoLayer_API) \ |
| 89 F(PPB_VideoSource_Private_API) \ | 89 F(PPB_VideoSource_Private_API) \ |
| 90 F(PPB_View_API) \ | 90 F(PPB_View_API) \ |
| 91 F(PPB_WebSocket_API) \ | 91 F(PPB_WebSocket_API) \ |
| 92 F(PPB_Widget_API) \ | 92 F(PPB_Widget_API) \ |
| 93 F(PPB_X509Certificate_Private_API) | 93 F(PPB_X509Certificate_Private_API) \ |
| 94 F(PPB_FilesystemProvider_API) |
| 94 | 95 |
| 95 namespace IPC { | 96 namespace IPC { |
| 96 class Message; | 97 class Message; |
| 97 } | 98 } |
| 98 | 99 |
| 99 namespace ppapi { | 100 namespace ppapi { |
| 100 | 101 |
| 101 // Normally we shouldn't reply on proxy here, but this is to support | 102 // Normally we shouldn't reply on proxy here, but this is to support |
| 102 // OnReplyReceived. See that comment. | 103 // OnReplyReceived. See that comment. |
| 103 namespace proxy { | 104 namespace proxy { |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 template <> \ | 252 template <> \ |
| 252 inline thunk::RESOURCE* Resource::GetAs() { \ | 253 inline thunk::RESOURCE* Resource::GetAs() { \ |
| 253 return As##RESOURCE(); \ | 254 return As##RESOURCE(); \ |
| 254 } | 255 } |
| 255 FOR_ALL_PPAPI_RESOURCE_APIS(DEFINE_RESOURCE_CAST) | 256 FOR_ALL_PPAPI_RESOURCE_APIS(DEFINE_RESOURCE_CAST) |
| 256 #undef DEFINE_RESOURCE_CAST | 257 #undef DEFINE_RESOURCE_CAST |
| 257 | 258 |
| 258 } // namespace ppapi | 259 } // namespace ppapi |
| 259 | 260 |
| 260 #endif // PPAPI_SHARED_IMPL_RESOURCE_H_ | 261 #endif // PPAPI_SHARED_IMPL_RESOURCE_H_ |
| OLD | NEW |