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

Unified Diff: mojo/edk/embedder/simple_platform_shared_buffer_posix.cc

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanup Created 5 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 side-by-side diff with in-line comments
Download patch
Index: mojo/edk/embedder/simple_platform_shared_buffer_posix.cc
diff --git a/third_party/mojo/src/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc b/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc
similarity index 96%
copy from third_party/mojo/src/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc
copy to mojo/edk/embedder/simple_platform_shared_buffer_posix.cc
index df99205816674027751cb6771e3417b895e28d59..6914b39ffe7fad1ad52ec8639921bd83a08c006b 100644
--- a/third_party/mojo/src/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc
+++ b/mojo/edk/embedder/simple_platform_shared_buffer_posix.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "third_party/mojo/src/mojo/edk/embedder/simple_platform_shared_buffer.h"
+#include "mojo/edk/embedder/simple_platform_shared_buffer.h"
#include <stdint.h>
#include <stdio.h> // For |fileno()|.
@@ -20,7 +20,7 @@
#include "base/posix/eintr_wrapper.h"
#include "base/sys_info.h"
#include "base/threading/thread_restrictions.h"
-#include "third_party/mojo/src/mojo/edk/embedder/platform_handle.h"
+#include "mojo/edk/embedder/platform_handle.h"
// We assume that |size_t| and |off_t| (type for |ftruncate()|) fits in a
// |uint64_t|.
@@ -28,7 +28,7 @@ static_assert(sizeof(size_t) <= sizeof(uint64_t), "size_t too big");
static_assert(sizeof(off_t) <= sizeof(uint64_t), "off_t too big");
namespace mojo {
-namespace embedder {
+namespace edk {
// SimplePlatformSharedBuffer --------------------------------------------------
@@ -154,5 +154,5 @@ void SimplePlatformSharedBufferMapping::Unmap() {
PLOG_IF(ERROR, result != 0) << "munmap";
}
-} // namespace embedder
+} // namespace edk
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698