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

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

Issue 10828023: PPAPI/NaCl: Make NaClIPCAdapter transfer handles more generally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-add gyp files Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/DEPS ('k') | ppapi/proxy/plugin_dispatcher_unittest.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) 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/proxy/plugin_array_buffer_var.h" 5 #include "ppapi/proxy/plugin_array_buffer_var.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
(...skipping 10 matching lines...) Expand all
21 if (buffer_.empty()) 21 if (buffer_.empty())
22 return NULL; 22 return NULL;
23 return &(buffer_[0]); 23 return &(buffer_[0]);
24 } 24 }
25 25
26 void PluginArrayBufferVar::Unmap() { 26 void PluginArrayBufferVar::Unmap() {
27 // We don't actually use shared memory yet, so do nothing. 27 // We don't actually use shared memory yet, so do nothing.
28 } 28 }
29 29
30 uint32 PluginArrayBufferVar::ByteLength() { 30 uint32 PluginArrayBufferVar::ByteLength() {
31 return buffer_.size(); 31 return static_cast<uint32>(buffer_.size());
32 } 32 }
33 33
34 } // namespace ppapi 34 } // namespace ppapi
35 35
OLDNEW
« no previous file with comments | « ppapi/proxy/DEPS ('k') | ppapi/proxy/plugin_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698