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

Side by Side Diff: ppapi/proxy/proxy_object_var.cc

Issue 8826011: Remove PP_Module from parameters for PPB_Var.VarFromUtf8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppp_messaging_proxy_unittest.cc ('k') | ppapi/shared_impl/ppb_file_ref_shared.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "ppapi/proxy/proxy_object_var.h" 5 #include "ppapi/proxy/proxy_object_var.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ppapi/c/pp_var.h" 8 #include "ppapi/c/pp_var.h"
9 9
10 using ppapi::proxy::PluginDispatcher; 10 using ppapi::proxy::PluginDispatcher;
11 11
12 namespace ppapi { 12 namespace ppapi {
13 13
14 ProxyObjectVar::ProxyObjectVar(PluginDispatcher* dispatcher, 14 ProxyObjectVar::ProxyObjectVar(PluginDispatcher* dispatcher,
15 int32 host_var_id) 15 int32 host_var_id)
16 : Var(0), 16 : dispatcher_(dispatcher),
17 dispatcher_(dispatcher),
18 host_var_id_(host_var_id) { 17 host_var_id_(host_var_id) {
19 // Should be given valid objects or we'll crash later. 18 // Should be given valid objects or we'll crash later.
20 DCHECK(dispatcher_); 19 DCHECK(dispatcher_);
21 DCHECK(host_var_id_); 20 DCHECK(host_var_id_);
22 } 21 }
23 22
24 ProxyObjectVar::~ProxyObjectVar() { 23 ProxyObjectVar::~ProxyObjectVar() {
25 } 24 }
26 25
27 ProxyObjectVar* ProxyObjectVar::AsProxyObjectVar() { 26 ProxyObjectVar* ProxyObjectVar::AsProxyObjectVar() {
(...skipping 13 matching lines...) Expand all
41 40
42 PP_VarType ProxyObjectVar::GetType() const { 41 PP_VarType ProxyObjectVar::GetType() const {
43 return PP_VARTYPE_OBJECT; 42 return PP_VARTYPE_OBJECT;
44 } 43 }
45 44
46 void ProxyObjectVar::AssignVarID(int32 id) { 45 void ProxyObjectVar::AssignVarID(int32 id) {
47 return Var::AssignVarID(id); 46 return Var::AssignVarID(id);
48 } 47 }
49 48
50 } // namespace ppapi 49 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppp_messaging_proxy_unittest.cc ('k') | ppapi/shared_impl/ppb_file_ref_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698