OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_TRACKER_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_TRACKER_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_TRACKER_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_TRACKER_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/atomic_sequence_num.h" | |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "base/hash_tables.h" | 11 #include "base/hash_tables.h" |
13 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
14 #include "base/singleton.h" | 13 #include "base/singleton.h" |
15 #include "third_party/ppapi/c/pp_resource.h" | 14 #include "third_party/ppapi/c/pp_resource.h" |
16 | 15 |
17 namespace pepper { | 16 namespace pepper { |
18 | 17 |
19 class Resource; | 18 class Resource; |
20 | 19 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 typedef std::pair<scoped_refptr<Resource>, size_t> ResourceAndRefCount; | 65 typedef std::pair<scoped_refptr<Resource>, size_t> ResourceAndRefCount; |
67 typedef base::hash_map<PP_Resource, ResourceAndRefCount> ResourceMap; | 66 typedef base::hash_map<PP_Resource, ResourceAndRefCount> ResourceMap; |
68 ResourceMap live_resources_; | 67 ResourceMap live_resources_; |
69 | 68 |
70 DISALLOW_COPY_AND_ASSIGN(ResourceTracker); | 69 DISALLOW_COPY_AND_ASSIGN(ResourceTracker); |
71 }; | 70 }; |
72 | 71 |
73 } // namespace pepper | 72 } // namespace pepper |
74 | 73 |
75 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_TRACKER_H_ | 74 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_TRACKER_H_ |
OLD | NEW |