Index: webkit/plugins/ppapi/resource.cc |
=================================================================== |
--- webkit/plugins/ppapi/resource.cc (revision 0) |
+++ webkit/plugins/ppapi/resource.cc (working copy) |
@@ -2,12 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "webkit/glue/plugins/pepper_resource.h" |
+#include "webkit/plugins/ppapi/resource.h" |
#include "base/logging.h" |
-#include "webkit/glue/plugins/pepper_resource_tracker.h" |
+#include "webkit/plugins/ppapi/resource_tracker.h" |
-namespace pepper { |
+namespace webkit { |
+namespace ppapi { |
Resource::Resource(PluginModule* module) |
: resource_id_(0), module_(module) { |
@@ -34,4 +35,11 @@ |
resource_id_ = 0; |
} |
-} // namespace pepper |
+#define DEFINE_TYPE_GETTER(RESOURCE) \ |
+ RESOURCE* Resource::As##RESOURCE() { return NULL; } |
+FOR_ALL_RESOURCES(DEFINE_TYPE_GETTER) |
+#undef DEFINE_TYPE_GETTER |
+ |
+} // namespace ppapi |
+} // namespace webkit |
+ |