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 "third_party/ppapi/c/pp_resource.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 // NULL if the resource does not match the specified type. | 28 // NULL if the resource does not match the specified type. |
29 virtual DeviceContext2D* AsDeviceContext2D() { return NULL; } | 29 virtual DeviceContext2D* AsDeviceContext2D() { return NULL; } |
30 virtual ImageData* AsImageData() { return NULL; } | 30 virtual ImageData* AsImageData() { return NULL; } |
31 | 31 |
32 private: | 32 private: |
33 PluginModule* module_; // Non-owning pointer to our module. | 33 PluginModule* module_; // Non-owning pointer to our module. |
34 | 34 |
35 DISALLOW_COPY_AND_ASSIGN(Resource); | 35 DISALLOW_COPY_AND_ASSIGN(Resource); |
36 }; | 36 }; |
37 | 37 |
38 // Returns a "NULL" resource. This is just a helper function so callers | |
39 // can avoid creating a resource with a 0 ID. | |
40 PP_Resource NullPPResource(); | |
41 | |
42 } // namespace pepper | 38 } // namespace pepper |
43 | 39 |
44 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_H_ | 40 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_H_ |
OLD | NEW |