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 "webkit/plugins/ppapi/host_var_tracker.h" | 5 #include "content/renderer/pepper/host_var_tracker.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/renderer/pepper/host_array_buffer_var.h" |
| 9 #include "content/renderer/pepper/npobject_var.h" |
| 10 #include "content/renderer/pepper/ppapi_plugin_instance_impl.h" |
8 #include "ppapi/c/pp_var.h" | 11 #include "ppapi/c/pp_var.h" |
9 #include "webkit/plugins/ppapi/host_array_buffer_var.h" | |
10 #include "webkit/plugins/ppapi/npobject_var.h" | |
11 #include "webkit/plugins/ppapi/ppapi_plugin_instance_impl.h" | |
12 | 12 |
13 using ppapi::ArrayBufferVar; | 13 using ppapi::ArrayBufferVar; |
14 using ppapi::NPObjectVar; | 14 using ppapi::NPObjectVar; |
15 | 15 |
16 namespace webkit { | 16 namespace webkit { |
17 namespace ppapi { | 17 namespace ppapi { |
18 | 18 |
19 HostVarTracker::HostVarTracker() | 19 HostVarTracker::HostVarTracker() |
20 : VarTracker(SINGLE_THREADED), | 20 : VarTracker(SINGLE_THREADED), |
21 last_shared_memory_map_id_(0) { | 21 last_shared_memory_map_id_(0) { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 return false; | 164 return false; |
165 | 165 |
166 *handle = it->second.handle; | 166 *handle = it->second.handle; |
167 *size_in_bytes = it->second.size_in_bytes; | 167 *size_in_bytes = it->second.size_in_bytes; |
168 shared_memory_map_.erase(it); | 168 shared_memory_map_.erase(it); |
169 return true; | 169 return true; |
170 } | 170 } |
171 | 171 |
172 } // namespace ppapi | 172 } // namespace ppapi |
173 } // namespace webkit | 173 } // namespace webkit |
OLD | NEW |