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_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "third_party/ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
11 #include "webkit/glue/plugins/pepper_resource_tracker.h" | 11 #include "webkit/glue/plugins/pepper_resource_tracker.h" |
12 | 12 |
13 namespace pepper { | 13 namespace pepper { |
14 | 14 |
15 // If you inherit from resource, make sure you add the class name here. | 15 // If you inherit from resource, make sure you add the class name here. |
16 #define FOR_ALL_RESOURCES(F) \ | 16 #define FOR_ALL_RESOURCES(F) \ |
17 F(Audio) \ | 17 F(Audio) \ |
18 F(AudioConfig) \ | 18 F(AudioConfig) \ |
19 F(Buffer) \ | 19 F(Buffer) \ |
20 F(DirectoryReader) \ | 20 F(DirectoryReader) \ |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 return As##Type(); \ | 119 return As##Type(); \ |
120 } | 120 } |
121 | 121 |
122 FOR_ALL_RESOURCES(DEFINE_RESOURCE_CAST) | 122 FOR_ALL_RESOURCES(DEFINE_RESOURCE_CAST) |
123 #undef DEFINE_RESOURCE_CAST | 123 #undef DEFINE_RESOURCE_CAST |
124 | 124 |
125 #undef FOR_ALL_RESOURCES | 125 #undef FOR_ALL_RESOURCES |
126 } // namespace pepper | 126 } // namespace pepper |
127 | 127 |
128 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_H_ | 128 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_H_ |
OLD | NEW |