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_SHARED_IMPL_RESOURCE_TRACKER_H_ | 5 #ifndef PPAPI_SHARED_IMPL_RESOURCE_TRACKER_H_ |
6 #define PPAPI_SHARED_IMPL_RESOURCE_TRACKER_H_ | 6 #define PPAPI_SHARED_IMPL_RESOURCE_TRACKER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
16 #include "base/threading/thread_checker_impl.h" | 16 #include "base/threading/thread_checker_impl.h" |
17 #include "ppapi/c/pp_instance.h" | 17 #include "ppapi/c/pp_instance.h" |
18 #include "ppapi/c/pp_resource.h" | 18 #include "ppapi/c/pp_resource.h" |
19 #include "ppapi/shared_impl/ppapi_shared_export.h" | 19 #include "ppapi/shared_impl/ppapi_shared_export.h" |
20 | 20 |
21 namespace ppapi { | 21 namespace ppapi { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // other threads (especially the IO thread). On the plugin side, the tracker | 113 // other threads (especially the IO thread). On the plugin side, the tracker |
114 // is protected by the proxy lock and is thread-safe, so this will be NULL. | 114 // is protected by the proxy lock and is thread-safe, so this will be NULL. |
115 scoped_ptr<base::ThreadChecker> thread_checker_; | 115 scoped_ptr<base::ThreadChecker> thread_checker_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(ResourceTracker); | 117 DISALLOW_COPY_AND_ASSIGN(ResourceTracker); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace ppapi | 120 } // namespace ppapi |
121 | 121 |
122 #endif // PPAPI_SHARED_IMPL_RESOURCE_TRACKER_H_ | 122 #endif // PPAPI_SHARED_IMPL_RESOURCE_TRACKER_H_ |
OLD | NEW |