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

Side by Side Diff: ppapi/shared_impl/scoped_pp_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 4 years, 12 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/scoped_pp_var.h ('k') | ppapi/shared_impl/test_globals.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/shared_impl/scoped_pp_var.h" 5 #include "ppapi/shared_impl/scoped_pp_var.h"
6 6
7 #include <stdint.h>
8
7 #include "ppapi/c/dev/ppb_memory_dev.h" 9 #include "ppapi/c/dev/ppb_memory_dev.h"
8 #include "ppapi/shared_impl/ppapi_globals.h" 10 #include "ppapi/shared_impl/ppapi_globals.h"
9 #include "ppapi/shared_impl/var_tracker.h" 11 #include "ppapi/shared_impl/var_tracker.h"
10 #include "ppapi/thunk/thunk.h" 12 #include "ppapi/thunk/thunk.h"
11 13
12 namespace ppapi { 14 namespace ppapi {
13 15
14 namespace { 16 namespace {
15 17
16 void CallAddRef(const PP_Var& v) { 18 void CallAddRef(const PP_Var& v) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 83 }
82 84
83 void ScopedPPVarArray::Set(size_t index, const ScopedPPVar& var) { 85 void ScopedPPVarArray::Set(size_t index, const ScopedPPVar& var) {
84 DCHECK(index < size_); 86 DCHECK(index < size_);
85 CallAddRef(var.get()); 87 CallAddRef(var.get());
86 CallRelease(array_[index]); 88 CallRelease(array_[index]);
87 array_[index] = var.get(); 89 array_[index] = var.get();
88 } 90 }
89 91
90 } // namespace ppapi 92 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/shared_impl/scoped_pp_var.h ('k') | ppapi/shared_impl/test_globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698