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

Unified Diff: mojo/edk/embedder/simple_platform_shared_buffer.h

Issue 1483823004: EDK: Move {platform_handle,scoped_platform_handle}.* to //mojo/edk/platform. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | « mojo/edk/embedder/scoped_platform_handle.h ('k') | mojo/edk/embedder/simple_platform_shared_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/simple_platform_shared_buffer.h
diff --git a/mojo/edk/embedder/simple_platform_shared_buffer.h b/mojo/edk/embedder/simple_platform_shared_buffer.h
index 75dfa82ced1ab36d189e15b15f3a552bebda1818..e2aaf381da98fd7fa8afe213e971478297986ac3 100644
--- a/mojo/edk/embedder/simple_platform_shared_buffer.h
+++ b/mojo/edk/embedder/simple_platform_shared_buffer.h
@@ -23,7 +23,7 @@ class SimplePlatformSharedBuffer final : public PlatformSharedBuffer {
static util::RefPtr<SimplePlatformSharedBuffer> CreateFromPlatformHandle(
size_t num_bytes,
- ScopedPlatformHandle platform_handle);
+ platform::ScopedPlatformHandle platform_handle);
// |PlatformSharedBuffer| implementation:
size_t GetNumBytes() const override;
@@ -33,8 +33,8 @@ class SimplePlatformSharedBuffer final : public PlatformSharedBuffer {
std::unique_ptr<PlatformSharedBufferMapping> MapNoCheck(
size_t offset,
size_t length) override;
- ScopedPlatformHandle DuplicatePlatformHandle() override;
- ScopedPlatformHandle PassPlatformHandle() override;
+ platform::ScopedPlatformHandle DuplicatePlatformHandle() override;
+ platform::ScopedPlatformHandle PassPlatformHandle() override;
private:
explicit SimplePlatformSharedBuffer(size_t num_bytes);
@@ -46,14 +46,14 @@ class SimplePlatformSharedBuffer final : public PlatformSharedBuffer {
// This is like |Init()|, but for |CreateFromPlatformHandle()|. (Note: It
// should verify that |platform_handle| is an appropriate handle for the
// claimed |num_bytes_|.)
- bool InitFromPlatformHandle(ScopedPlatformHandle platform_handle);
+ bool InitFromPlatformHandle(platform::ScopedPlatformHandle platform_handle);
const size_t num_bytes_;
// This is set in |Init()|/|InitFromPlatformHandle()| and never modified
// (except by |PassPlatformHandle()|; see the comments above its declaration),
// hence does not need to be protected by a lock.
- ScopedPlatformHandle handle_;
+ platform::ScopedPlatformHandle handle_;
MOJO_DISALLOW_COPY_AND_ASSIGN(SimplePlatformSharedBuffer);
};
« no previous file with comments | « mojo/edk/embedder/scoped_platform_handle.h ('k') | mojo/edk/embedder/simple_platform_shared_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698