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

Unified Diff: mojo/edk/system/mapping_table.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: move to mojo::edk namespace in preparation for runtim flag 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/system/mapping_table.cc
diff --git a/third_party/mojo/src/mojo/edk/system/mapping_table.cc b/mojo/edk/system/mapping_table.cc
similarity index 88%
copy from third_party/mojo/src/mojo/edk/system/mapping_table.cc
copy to mojo/edk/system/mapping_table.cc
index 693e8d79590a57032e92a34addec1c8a8c8ab5c9..717127e5ac55e723793e167b50c7ada80a7483af 100644
--- a/third_party/mojo/src/mojo/edk/system/mapping_table.cc
+++ b/mojo/edk/system/mapping_table.cc
@@ -9,7 +9,7 @@
#include "mojo/edk/system/configuration.h"
namespace mojo {
-namespace system {
+namespace edk {
MappingTable::MappingTable() {
}
@@ -20,7 +20,7 @@ MappingTable::~MappingTable() {
}
MojoResult MappingTable::AddMapping(
- scoped_ptr<embedder::PlatformSharedBufferMapping> mapping) {
+ scoped_ptr<PlatformSharedBufferMapping> mapping) {
DCHECK(mapping);
if (address_to_mapping_map_.size() >=
@@ -38,11 +38,11 @@ MojoResult MappingTable::RemoveMapping(uintptr_t address) {
AddressToMappingMap::iterator it = address_to_mapping_map_.find(address);
if (it == address_to_mapping_map_.end())
return MOJO_RESULT_INVALID_ARGUMENT;
- embedder::PlatformSharedBufferMapping* mapping_to_delete = it->second;
+ PlatformSharedBufferMapping* mapping_to_delete = it->second;
address_to_mapping_map_.erase(it);
delete mapping_to_delete;
return MOJO_RESULT_OK;
}
-} // namespace system
+} // namespace edk
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698