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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ppapi/shared_impl/resource_var.h"
6
7 namespace ppapi {
8
9 ResourceVar::ResourceVar() : pp_resource_(0) {}
10
11 ResourceVar::ResourceVar(PP_Resource pp_resource) : pp_resource_(pp_resource) {}
12
13 ResourceVar::ResourceVar(const IPC::Message& creation_message)
14 : pp_resource_(0),
15 creation_message_(creation_message) {}
16
17 ResourceVar::~ResourceVar() {}
18
19 ResourceVar* ResourceVar::AsResourceVar() {
20 return this;
21 }
22
23 PP_VarType ResourceVar::GetType() const {
24 // TODO(mgiuca): Return PP_VARTYPE_RESOURCE, once that is a valid enum value.
25 NOTREACHED();
26 return PP_VARTYPE_UNDEFINED;
27 }
28
29 // static
30 ResourceVar* ResourceVar::FromPPVar(PP_Var var) {
31 // TODO(mgiuca): Implement this function, once PP_VARTYPE_RESOURCE is
32 // introduced.
33 return NULL;
34 }
35
36 } // namespace ppapi
OLDNEW
« 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