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/host/ppapi_host.h" | 5 #include "ppapi/host/ppapi_host.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/host/host_factory.h" | 11 #include "ppapi/host/host_factory.h" |
10 #include "ppapi/host/host_message_context.h" | 12 #include "ppapi/host/host_message_context.h" |
11 #include "ppapi/host/instance_message_filter.h" | 13 #include "ppapi/host/instance_message_filter.h" |
12 #include "ppapi/host/resource_host.h" | 14 #include "ppapi/host/resource_host.h" |
13 #include "ppapi/proxy/ppapi_messages.h" | 15 #include "ppapi/proxy/ppapi_messages.h" |
14 #include "ppapi/proxy/resource_message_params.h" | 16 #include "ppapi/proxy/resource_message_params.h" |
15 #include "ppapi/proxy/serialized_handle.h" | 17 #include "ppapi/proxy/serialized_handle.h" |
16 #include "ppapi/shared_impl/host_resource.h" | 18 #include "ppapi/shared_impl/host_resource.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 resources_.erase(found); | 278 resources_.erase(found); |
277 } | 279 } |
278 | 280 |
279 ResourceHost* PpapiHost::GetResourceHost(PP_Resource resource) const { | 281 ResourceHost* PpapiHost::GetResourceHost(PP_Resource resource) const { |
280 ResourceMap::const_iterator found = resources_.find(resource); | 282 ResourceMap::const_iterator found = resources_.find(resource); |
281 return found == resources_.end() ? NULL : found->second.get(); | 283 return found == resources_.end() ? NULL : found->second.get(); |
282 } | 284 } |
283 | 285 |
284 } // namespace host | 286 } // namespace host |
285 } // namespace ppapi | 287 } // namespace ppapi |
OLD | NEW |