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

Unified Diff: mojo/edk/embedder/embedder_internal.h

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: 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/embedder_internal.h
diff --git a/third_party/mojo/src/mojo/edk/embedder/embedder_internal.h b/mojo/edk/embedder/embedder_internal.h
similarity index 61%
copy from third_party/mojo/src/mojo/edk/embedder/embedder_internal.h
copy to mojo/edk/embedder/embedder_internal.h
index 6f201b81e65d6430955fa3b02657cd4e58ad3cbe..f97bf68354ae1313fe8b1d232b6e089626bba3e4 100644
--- a/third_party/mojo/src/mojo/edk/embedder/embedder_internal.h
+++ b/mojo/edk/embedder/embedder_internal.h
@@ -11,8 +11,6 @@
#include <stdint.h>
-#include "mojo/edk/system/channel_id.h"
-
namespace base {
class TaskRunner;
}
@@ -32,16 +30,6 @@ namespace embedder {
class PlatformSupport;
class ProcessDelegate;
-// This is a type that's opaque to users of the embedder API (which only
-// gives/takes |ChannelInfo*|s). We make it a struct to make it
-// template-friendly.
-struct ChannelInfo {
- explicit ChannelInfo(system::ChannelId channel_id = 0)
- : channel_id(channel_id) {}
-
- system::ChannelId channel_id;
-};
-
namespace internal {
// Instance of |PlatformSupport| to use.
@@ -49,13 +37,13 @@ extern PlatformSupport* g_platform_support;
// Instance of |Core| used by the system functions (|Mojo...()|).
extern system::Core* g_core;
+extern base::TaskRunner* g_delegate_thread_task_runner;
+extern embedder::ProcessDelegate* g_process_delegate;
+extern base::TaskRunner* g_io_thread_task_runner;
-// Instance of |IPCSupport|, initialized by |InitIPCSupport()| and reset by
-// |ShutdownIPCSupport()|. This is declared here so that
-// |mojo::embedder::test::Shutdown()| can check that it's only called after
-// |ShutdownIPCSupport()|.
-extern system::IPCSupport* g_ipc_support;
-
+// Called on the IO thread.
+void ChannelStarted();
+void ChannelShutdown();
} // namespace internal
} // namepace embedder

Powered by Google App Engine
This is Rietveld 408576698