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

Unified Diff: webkit/plugins/ppapi/var.h

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/string.cc ('k') | webkit/plugins/ppapi/var.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/var.h
===================================================================
--- webkit/plugins/ppapi/var.h (revision 0)
+++ webkit/plugins/ppapi/var.h (working copy)
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_GLUE_PLUGINS_PEPPER_VAR_H_
-#define WEBKIT_GLUE_PLUGINS_PEPPER_VAR_H_
+#ifndef WEBKIT_PLUGINS_PPAPI_VAR_H_
+#define WEBKIT_PLUGINS_PPAPI_VAR_H_
#include <string>
-#include "webkit/glue/plugins/pepper_resource.h"
+#include "webkit/plugins/ppapi/resource.h"
struct PP_Var;
struct PPB_Var;
@@ -16,7 +16,8 @@
typedef struct _NPVariant NPVariant;
typedef void* NPIdentifier;
-namespace pepper {
+namespace webkit {
+namespace ppapi {
// Var -------------------------------------------------------------------------
@@ -28,7 +29,7 @@
virtual ~Var();
// Resource overrides.
- virtual Var* AsVar() { return this; }
+ virtual Var* AsVar();
// Returns a PP_Var that corresponds to the given NPVariant. The contents of
// the NPVariant will be copied unless the NPVariant corresponds to an
@@ -114,7 +115,7 @@
const std::string& value() const { return value_; }
// Resource overrides.
- virtual StringVar* AsStringVar() { return this; }
+ virtual StringVar* AsStringVar();
// Helper function to create a PP_Var of type string that contains a copy of
// the given string. The input data must be valid UTF-8 encoded text, if it
@@ -154,7 +155,7 @@
virtual ~ObjectVar();
// Resource overrides.
- virtual ObjectVar* AsObjectVar() { return this; }
+ virtual ObjectVar* AsObjectVar();
// Returns the underlying NPObject corresponding to this ObjectVar.
// Guaranteed non-NULL.
@@ -246,6 +247,7 @@
PP_Var* exception_;
};
-} // namespace pepper
+} // namespace ppapi
+} // namespace webkit
-#endif // WEBKIT_GLUE_PLUGINS_PEPPER_VAR_H_
+#endif // WEBKIT_PLUGINS_PPAPI_VAR_H_
« no previous file with comments | « webkit/plugins/ppapi/string.cc ('k') | webkit/plugins/ppapi/var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698