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

Unified Diff: webkit/glue/plugins/pepper_buffer.h

Issue 5410001: Change trusted shared memory interface to match audio.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/tests/test_buffer.cc ('k') | webkit/glue/plugins/pepper_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_buffer.h
===================================================================
--- webkit/glue/plugins/pepper_buffer.h (revision 67614)
+++ webkit/glue/plugins/pepper_buffer.h (working copy)
@@ -20,7 +20,7 @@
explicit Buffer(PluginModule* module);
virtual ~Buffer();
- int size() const { return size_; }
+ uint32_t size() const { return size_; }
unsigned char* mapped_buffer() { return mem_buffer_.get(); }
// Returns true if this buffer is mapped. False means that the buffer is
@@ -35,8 +35,8 @@
Buffer* AsBuffer() { return this; }
// PPB_Buffer implementation.
- bool Init(int size);
- void Describe(int* size_in_bytes) const;
+ bool Init(uint32_t size);
+ void Describe(uint32_t* size_in_bytes) const;
void* Map();
void Unmap();
@@ -44,7 +44,7 @@
void Swap(Buffer* other);
private:
- int size_;
+ uint32_t size_;
scoped_array<unsigned char> mem_buffer_;
DISALLOW_COPY_AND_ASSIGN(Buffer);
« no previous file with comments | « ppapi/tests/test_buffer.cc ('k') | webkit/glue/plugins/pepper_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698