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

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

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 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
« no previous file with comments | « ppapi/proxy/proxy_object_var.h ('k') | ppapi/proxy/raw_var_data.h » ('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_t host_var_id)
16 : dispatcher_(dispatcher), 16 : dispatcher_(dispatcher), host_var_id_(host_var_id), user_data_(NULL) {
17 host_var_id_(host_var_id),
18 user_data_(NULL) {
19 // Should be given valid objects or we'll crash later. 17 // Should be given valid objects or we'll crash later.
20 DCHECK(host_var_id_); 18 DCHECK(host_var_id_);
21 } 19 }
22 20
23 ProxyObjectVar::~ProxyObjectVar() { 21 ProxyObjectVar::~ProxyObjectVar() {
24 } 22 }
25 23
26 ProxyObjectVar* ProxyObjectVar::AsProxyObjectVar() { 24 ProxyObjectVar* ProxyObjectVar::AsProxyObjectVar() {
27 return this; 25 return this;
28 } 26 }
29 27
30 PP_VarType ProxyObjectVar::GetType() const { 28 PP_VarType ProxyObjectVar::GetType() const {
31 return PP_VARTYPE_OBJECT; 29 return PP_VARTYPE_OBJECT;
32 } 30 }
33 31
34 void ProxyObjectVar::AssignVarID(int32 id) { 32 void ProxyObjectVar::AssignVarID(int32_t id) {
35 return Var::AssignVarID(id); 33 return Var::AssignVarID(id);
36 } 34 }
37 35
38 } // namespace ppapi 36 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/proxy_object_var.h ('k') | ppapi/proxy/raw_var_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698