| 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_PROXY_PLUGIN_RESOURCE_TRACKER_H_ | 5 #ifndef PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_ |
| 6 #define PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_ | 6 #define PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
| 13 #include "base/macros.h" |
| 13 #include "ppapi/c/pp_completion_callback.h" | 14 #include "ppapi/c/pp_completion_callback.h" |
| 14 #include "ppapi/c/pp_instance.h" | 15 #include "ppapi/c/pp_instance.h" |
| 16 #include "ppapi/c/pp_resource.h" |
| 15 #include "ppapi/c/pp_stdint.h" | 17 #include "ppapi/c/pp_stdint.h" |
| 16 #include "ppapi/c/pp_resource.h" | |
| 17 #include "ppapi/c/pp_var.h" | 18 #include "ppapi/c/pp_var.h" |
| 18 #include "ppapi/proxy/ppapi_proxy_export.h" | 19 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 19 #include "ppapi/shared_impl/host_resource.h" | 20 #include "ppapi/shared_impl/host_resource.h" |
| 20 #include "ppapi/shared_impl/resource_tracker.h" | 21 #include "ppapi/shared_impl/resource_tracker.h" |
| 21 | 22 |
| 22 namespace base { | 23 namespace base { |
| 23 template<typename T> struct DefaultSingletonTraits; | 24 template<typename T> struct DefaultSingletonTraits; |
| 24 } | 25 } |
| 25 | 26 |
| 26 namespace ppapi { | 27 namespace ppapi { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 63 |
| 63 base::hash_set<PP_Resource> abandoned_resources_; | 64 base::hash_set<PP_Resource> abandoned_resources_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(PluginResourceTracker); | 66 DISALLOW_COPY_AND_ASSIGN(PluginResourceTracker); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace proxy | 69 } // namespace proxy |
| 69 } // namespace ppapi | 70 } // namespace ppapi |
| 70 | 71 |
| 71 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_ | 72 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_TRACKER_H_ |
| OLD | NEW |