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

Unified Diff: remoting/base/shared_buffer.h

Issue 11413022: DesktopSessionAgent now hosts the video capturer and provides necessary plumbing to drive it via an… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing clang compilation. Created 8 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 | « no previous file | remoting/base/shared_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/shared_buffer.h
diff --git a/remoting/base/shared_buffer.h b/remoting/base/shared_buffer.h
index a25c862e906c97578cdb33663bfb82c1db052b96..7b144d162df630fbd42c45594625e60a090fa191 100644
--- a/remoting/base/shared_buffer.h
+++ b/remoting/base/shared_buffer.h
@@ -27,12 +27,12 @@ class SharedBuffer
// Opens an existing shared memory buffer and maps it to the memory of
// the calling process (in read only mode). If the operation fails for any
// reason, ptr() method will return NULL.
- SharedBuffer(intptr_t id, base::SharedMemoryHandle handle, uint32 size);
+ SharedBuffer(int id, base::SharedMemoryHandle handle, uint32 size);
// Opens an existing shared memory buffer created by a different process and
// maps it to the memory of the calling process (in read only mode). If
// the operation fails for any reason, ptr() method will return NULL.
- SharedBuffer(intptr_t id, base::SharedMemoryHandle handle,
+ SharedBuffer(int id, base::SharedMemoryHandle handle,
base::ProcessHandle process, uint32 size);
// Returns pointer to the beginning of the allocated data buffer. Returns NULL
@@ -43,17 +43,17 @@ class SharedBuffer
// data buffer.
base::SharedMemoryHandle handle() const { return shared_memory_.handle(); }
- intptr_t id() const { return id_; }
+ int id() const { return id_; }
uint32 size() const { return size_; }
- void set_id(intptr_t id) { id_ = id; }
+ void set_id(int id) { id_ = id; }
private:
friend class base::RefCountedThreadSafe<SharedBuffer>;
virtual ~SharedBuffer();
// Unique identifier of the buffer or 0 if ID hasn't been set.
- intptr_t id_;
+ int id_;
// Shared memory section backing up the buffer.
base::SharedMemory shared_memory_;
« no previous file with comments | « no previous file | remoting/base/shared_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698