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/plugin_array_buffer_var.h" | 5 #include "ppapi/proxy/plugin_array_buffer_var.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
| 11 #include "base/memory/shared_memory.h" |
11 #include "base/process_util.h" | 12 #include "base/process_util.h" |
12 #include "base/shared_memory.h" | |
13 #include "ppapi/c/dev/ppb_buffer_dev.h" | 13 #include "ppapi/c/dev/ppb_buffer_dev.h" |
14 #include "ppapi/proxy/plugin_dispatcher.h" | 14 #include "ppapi/proxy/plugin_dispatcher.h" |
15 #include "ppapi/proxy/plugin_globals.h" | 15 #include "ppapi/proxy/plugin_globals.h" |
16 #include "ppapi/proxy/ppapi_messages.h" | 16 #include "ppapi/proxy/ppapi_messages.h" |
17 #include "ppapi/proxy/serialized_structs.h" | 17 #include "ppapi/proxy/serialized_structs.h" |
18 #include "ppapi/shared_impl/host_resource.h" | 18 #include "ppapi/shared_impl/host_resource.h" |
19 #include "ppapi/shared_impl/resource.h" | 19 #include "ppapi/shared_impl/resource.h" |
20 #include "ppapi/thunk/enter.h" | 20 #include "ppapi/thunk/enter.h" |
21 #include "ppapi/thunk/ppb_buffer_api.h" | 21 #include "ppapi/thunk/ppb_buffer_api.h" |
22 | 22 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // We don't need to keep the shared memory around on the plugin side; | 103 // We don't need to keep the shared memory around on the plugin side; |
104 // we've already copied all our data into it. We'll make it invalid | 104 // we've already copied all our data into it. We'll make it invalid |
105 // just to be safe. | 105 // just to be safe. |
106 *plugin_out_handle = base::SharedMemory::NULLHandle(); | 106 *plugin_out_handle = base::SharedMemory::NULLHandle(); |
107 | 107 |
108 return true; | 108 return true; |
109 } | 109 } |
110 | 110 |
111 } // namespace ppapi | 111 } // namespace ppapi |
OLD | NEW |