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

Side by Side Diff: content/renderer/pepper/plugin_object.h

Issue 225903006: PPAPI: Run clang_format.py on content/renderer/pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
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 CONTENT_RENDERER_PEPPER_PLUGIN_OBJECT_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PLUGIN_OBJECT_H_
6 #define CONTENT_RENDERER_PEPPER_PLUGIN_OBJECT_H_ 6 #define CONTENT_RENDERER_PEPPER_PLUGIN_OBJECT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // Allocates a new PluginObject and returns it as a PP_Var with a 29 // Allocates a new PluginObject and returns it as a PP_Var with a
30 // refcount of 1. 30 // refcount of 1.
31 static PP_Var Create(PepperPluginInstanceImpl* instance, 31 static PP_Var Create(PepperPluginInstanceImpl* instance,
32 const PPP_Class_Deprecated* ppp_class, 32 const PPP_Class_Deprecated* ppp_class,
33 void* ppp_class_data); 33 void* ppp_class_data);
34 34
35 PepperPluginInstanceImpl* instance() const { return instance_; } 35 PepperPluginInstanceImpl* instance() const { return instance_; }
36 36
37 const PPP_Class_Deprecated* ppp_class() { return ppp_class_; } 37 const PPP_Class_Deprecated* ppp_class() { return ppp_class_; }
38 void* ppp_class_data() { return ppp_class_data_; }; 38 void* ppp_class_data() {
39 return ppp_class_data_;
40 };
39 41
40 NPObject* GetNPObject() const; 42 NPObject* GetNPObject() const;
41 43
42 // Returns true if the given var is an object implemented by the same plugin 44 // Returns true if the given var is an object implemented by the same plugin
43 // that owns the var object, and that the class matches. If it matches, 45 // that owns the var object, and that the class matches. If it matches,
44 // returns true and places the class data into |*ppp_class_data| (which can 46 // returns true and places the class data into |*ppp_class_data| (which can
45 // optionally be NULL if no class data is desired). 47 // optionally be NULL if no class data is desired).
46 static bool IsInstanceOf(NPObject* np_object, 48 static bool IsInstanceOf(NPObject* np_object,
47 const PPP_Class_Deprecated* ppp_class, 49 const PPP_Class_Deprecated* ppp_class,
48 void** ppp_class_data); 50 void** ppp_class_data);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 86
85 const PPP_Class_Deprecated* ppp_class_; 87 const PPP_Class_Deprecated* ppp_class_;
86 void* ppp_class_data_; 88 void* ppp_class_data_;
87 89
88 DISALLOW_COPY_AND_ASSIGN(PluginObject); 90 DISALLOW_COPY_AND_ASSIGN(PluginObject);
89 }; 91 };
90 92
91 } // namespace content 93 } // namespace content
92 94
93 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_OBJECT_H_ 95 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698