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

Unified Diff: mojo/edk/system/raw_channel.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/platform_handle_dispatcher_unittest.cc ('k') | mojo/edk/system/raw_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/raw_channel.h
diff --git a/mojo/edk/system/raw_channel.h b/mojo/edk/system/raw_channel.h
index f08512098ad526f424f689208f3318ba5a0f5507..03a3c884c5b1fa847c94700dc0d9f994b096d061 100644
--- a/mojo/edk/system/raw_channel.h
+++ b/mojo/edk/system/raw_channel.h
@@ -9,7 +9,8 @@
#include <vector>
#include "base/memory/weak_ptr.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/message_in_transit.h"
#include "mojo/edk/system/message_in_transit_queue.h"
#include "mojo/edk/util/mutex.h"
@@ -66,7 +67,7 @@ class RawChannel {
// |Shutdown()| and then (if desired) destroy it.
virtual void OnReadMessage(
const MessageInTransit::View& message_view,
- std::unique_ptr<std::vector<embedder::ScopedPlatformHandle>>
+ std::unique_ptr<std::vector<platform::ScopedPlatformHandle>>
platform_handles) = 0;
// Called when there's a (fatal) error. This may call the |RawChannel|'s
@@ -85,7 +86,7 @@ class RawChannel {
// (platform-appropriate) bidirectional communication channel (e.g., a socket
// on POSIX, a named pipe on Windows).
static std::unique_ptr<RawChannel> Create(
- embedder::ScopedPlatformHandle handle);
+ platform::ScopedPlatformHandle handle);
// This must be called (on an I/O thread) before this object is used. Does
// *not* take ownership of |delegate|. Both the I/O thread and |delegate| must
@@ -171,7 +172,7 @@ class RawChannel {
// |PlatformHandle::CloseIfNecessary()| isn't const (and actually modifies
// state).
void GetPlatformHandlesToSend(size_t* num_platform_handles,
- embedder::PlatformHandle** platform_handles,
+ platform::PlatformHandle** platform_handles,
void** serialization_data);
// Gets buffers to be written. These buffers will always come from the front
@@ -261,7 +262,7 @@ class RawChannel {
// called when |num_platform_handles| is nonzero. Returns null if the
// |num_platform_handles| handles are not available. Only called on the I/O
// thread.
- virtual std::unique_ptr<std::vector<embedder::ScopedPlatformHandle>>
+ virtual std::unique_ptr<std::vector<platform::ScopedPlatformHandle>>
GetReadPlatformHandles(size_t num_platform_handles,
const void* platform_handle_table)
MOJO_LOCKS_EXCLUDED(write_mutex_) = 0;
« no previous file with comments | « mojo/edk/system/platform_handle_dispatcher_unittest.cc ('k') | mojo/edk/system/raw_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698