Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: webkit/glue/plugins/pepper_resource.h

Issue 2072010: Update Chrome to use the new int64-typedefed module, instance, and resources ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/plugins/pepper_plugin_module.cc ('k') | webkit/glue/plugins/pepper_resource.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_plugin_module.cc ('k') | webkit/glue/plugins/pepper_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698