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

Unified Diff: mojo/edk/system/master_connection_manager.cc

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/system/master_connection_manager.h ('k') | mojo/edk/system/message_pipe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/master_connection_manager.cc
diff --git a/mojo/edk/system/master_connection_manager.cc b/mojo/edk/system/master_connection_manager.cc
index d64ee632648a27ad076b011862ef026ffdbd5b3e..af863739a87a3bb5dbade201dcb007fcd3d13e75 100644
--- a/mojo/edk/system/master_connection_manager.cc
+++ b/mojo/edk/system/master_connection_manager.cc
@@ -16,8 +16,8 @@
#include "base/message_loop/message_loop.h"
#include "mojo/edk/embedder/master_process_delegate.h"
#include "mojo/edk/embedder/platform_channel_pair.h"
-#include "mojo/edk/embedder/platform_handle.h"
-#include "mojo/edk/embedder/scoped_platform_handle.h"
+#include "mojo/edk/platform/platform_handle.h"
+#include "mojo/edk/platform/scoped_platform_handle.h"
#include "mojo/edk/system/connection_manager_messages.h"
#include "mojo/edk/system/message_in_transit.h"
#include "mojo/edk/system/raw_channel.h"
@@ -26,7 +26,8 @@
#include "mojo/edk/util/waitable_event.h"
#include "mojo/public/cpp/system/macros.h"
-using mojo::embedder::ScopedPlatformHandle;
+using mojo::platform::PlatformHandle;
+using mojo::platform::ScopedPlatformHandle;
using mojo::platform::TaskRunner;
using mojo::util::AutoResetWaitableEvent;
using mojo::util::MakeUnique;
@@ -293,7 +294,7 @@ class MasterConnectionManager::ProcessConnections {
// Pending:
if (pending_platform_handle) {
pending_platform_handle->reset(it->second);
- it->second = embedder::PlatformHandle();
+ it->second = PlatformHandle();
}
return ConnectionStatus::PENDING;
}
@@ -306,7 +307,7 @@ class MasterConnectionManager::ProcessConnections {
if (status == ConnectionStatus::RUNNING) {
DCHECK(!pending_platform_handle.is_valid());
- process_connections_[to_process_identifier] = embedder::PlatformHandle();
+ process_connections_[to_process_identifier] = PlatformHandle();
} else if (status == ConnectionStatus::PENDING) {
DCHECK(pending_platform_handle.is_valid());
process_connections_[to_process_identifier] =
@@ -318,7 +319,7 @@ class MasterConnectionManager::ProcessConnections {
private:
// TODO(vtl): Make |second| |ScopedPlatformHandle|s.
- std::unordered_map<ProcessIdentifier, embedder::PlatformHandle>
+ std::unordered_map<ProcessIdentifier, PlatformHandle>
process_connections_; // "Owns" any valid platform handles.
MOJO_DISALLOW_COPY_AND_ASSIGN(ProcessConnections);
« no previous file with comments | « mojo/edk/system/master_connection_manager.h ('k') | mojo/edk/system/message_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698