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

Unified Diff: ppapi/shared_impl/resource_var.cc

Issue 23346009: [PPAPI] Added a new Var subclass, ResourceVar. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: gyp: Fix linker errors by linking against ipc.dll. Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/resource_var.h ('k') | ppapi/shared_impl/var.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/resource_var.cc
diff --git a/ppapi/shared_impl/resource_var.cc b/ppapi/shared_impl/resource_var.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6170911905adaa50874b6d53d25ce6dd834804e4
--- /dev/null
+++ b/ppapi/shared_impl/resource_var.cc
@@ -0,0 +1,36 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ppapi/shared_impl/resource_var.h"
+
+namespace ppapi {
+
+ResourceVar::ResourceVar() : pp_resource_(0) {}
+
+ResourceVar::ResourceVar(PP_Resource pp_resource) : pp_resource_(pp_resource) {}
+
+ResourceVar::ResourceVar(const IPC::Message& creation_message)
+ : pp_resource_(0),
+ creation_message_(creation_message) {}
+
+ResourceVar::~ResourceVar() {}
+
+ResourceVar* ResourceVar::AsResourceVar() {
+ return this;
+}
+
+PP_VarType ResourceVar::GetType() const {
+ // TODO(mgiuca): Return PP_VARTYPE_RESOURCE, once that is a valid enum value.
+ NOTREACHED();
+ return PP_VARTYPE_UNDEFINED;
+}
+
+// static
+ResourceVar* ResourceVar::FromPPVar(PP_Var var) {
+ // TODO(mgiuca): Implement this function, once PP_VARTYPE_RESOURCE is
+ // introduced.
+ return NULL;
+}
+
+} // namespace ppapi
« no previous file with comments | « ppapi/shared_impl/resource_var.h ('k') | ppapi/shared_impl/var.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698