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

Unified Diff: mojo/edk/system/master_connection_manager.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/system/local_data_pipe_impl.cc ('k') | mojo/edk/system/master_connection_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/master_connection_manager.h
diff --git a/mojo/edk/system/master_connection_manager.h b/mojo/edk/system/master_connection_manager.h
index 863b76b90b1b374f743031e78117bcaf1967c53d..1f4d4b71dc450a0d853641c5ca8fb114219d6070 100644
--- a/mojo/edk/system/master_connection_manager.h
+++ b/mojo/edk/system/master_connection_manager.h
@@ -10,7 +10,7 @@
#include <unordered_map>
#include "base/threading/thread.h"
-#include "mojo/edk/embedder/scoped_platform_handle.h"
+#include "mojo/edk/platform/scoped_platform_handle.h"
#include "mojo/edk/platform/task_runner.h"
#include "mojo/edk/system/connection_manager.h"
#include "mojo/edk/util/mutex.h"
@@ -66,7 +66,7 @@ class MasterConnectionManager final : public ConnectionManager {
// assuming proper shutdown. Returns the process identifier for the
// newly-added slave.
ProcessIdentifier AddSlave(embedder::SlaveInfo slave_info,
- embedder::ScopedPlatformHandle platform_handle);
+ platform::ScopedPlatformHandle platform_handle);
// Like |AddSlave()|, but allows a connection to be bootstrapped: both the
// master and slave may call |Connect()| with |connection_id| immediately (as
@@ -76,7 +76,7 @@ class MasterConnectionManager final : public ConnectionManager {
// tests.)
ProcessIdentifier AddSlaveAndBootstrap(
embedder::SlaveInfo slave_info,
- embedder::ScopedPlatformHandle platform_handle,
+ platform::ScopedPlatformHandle platform_handle,
const ConnectionIdentifier& connection_id);
// |ConnectionManager| methods:
@@ -86,7 +86,7 @@ class MasterConnectionManager final : public ConnectionManager {
Result Connect(const ConnectionIdentifier& connection_id,
ProcessIdentifier* peer_process_identifier,
bool* is_first,
- embedder::ScopedPlatformHandle* platform_handle) override;
+ platform::ScopedPlatformHandle* platform_handle) override;
private:
class Helper;
@@ -101,7 +101,7 @@ class MasterConnectionManager final : public ConnectionManager {
const ConnectionIdentifier& connection_id,
ProcessIdentifier* peer_process_identifier,
bool* is_first,
- embedder::ScopedPlatformHandle* platform_handle);
+ platform::ScopedPlatformHandle* platform_handle);
// Helper for |ConnectImpl()|. This is called when the two process identifiers
// are known (and known to be valid), and all that remains is to determine the
@@ -110,14 +110,14 @@ class MasterConnectionManager final : public ConnectionManager {
Result ConnectImplHelperNoLock(
ProcessIdentifier process_identifier,
ProcessIdentifier peer_process_identifier,
- embedder::ScopedPlatformHandle* platform_handle)
+ platform::ScopedPlatformHandle* platform_handle)
MOJO_EXCLUSIVE_LOCKS_REQUIRED(mutex_);
// These should only be called on |private_thread_|:
void ShutdownOnPrivateThread() MOJO_NOT_THREAD_SAFE;
// Signals |*event| on completion.
void AddSlaveOnPrivateThread(embedder::SlaveInfo slave_info,
- embedder::ScopedPlatformHandle platform_handle,
+ platform::ScopedPlatformHandle platform_handle,
ProcessIdentifier slave_process_identifier,
util::AutoResetWaitableEvent* event);
// Called by |Helper::OnError()|.
« no previous file with comments | « mojo/edk/system/local_data_pipe_impl.cc ('k') | mojo/edk/system/master_connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698