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 #include "ppapi/proxy/device_enumeration_resource_helper.h" | 5 #include "ppapi/proxy/device_enumeration_resource_helper.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/logging.h" | 10 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
10 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
11 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
12 #include "ppapi/c/pp_array_output.h" | 14 #include "ppapi/c/pp_array_output.h" |
13 #include "ppapi/c/pp_errors.h" | 15 #include "ppapi/c/pp_errors.h" |
14 #include "ppapi/proxy/dispatch_reply_message.h" | 16 #include "ppapi/proxy/dispatch_reply_message.h" |
15 #include "ppapi/proxy/plugin_resource.h" | 17 #include "ppapi/proxy/plugin_resource.h" |
16 #include "ppapi/proxy/ppapi_messages.h" | 18 #include "ppapi/proxy/ppapi_messages.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 OBJECT_IS_PROXY, owner_->pp_instance(), devices[i])); | 177 OBJECT_IS_PROXY, owner_->pp_instance(), devices[i])); |
176 } | 178 } |
177 if (!writer.StoreResourceVector(device_resources)) | 179 if (!writer.StoreResourceVector(device_resources)) |
178 return PP_ERROR_FAILED; | 180 return PP_ERROR_FAILED; |
179 | 181 |
180 return PP_OK; | 182 return PP_OK; |
181 } | 183 } |
182 | 184 |
183 } // namespace proxy | 185 } // namespace proxy |
184 } // namespace ppapi | 186 } // namespace ppapi |
OLD | NEW |