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

Unified Diff: mojo/edk/system/slave_connection_manager.h

Issue 1462083003: Add //mojo/edk/platform and move platform_task_runners.h there. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: update readme 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
Index: mojo/edk/system/slave_connection_manager.h
diff --git a/mojo/edk/system/slave_connection_manager.h b/mojo/edk/system/slave_connection_manager.h
index f9ab06e79e20fea9f47701e7a68f8d6c48d1a2b5..2453f56c6aa5273e3f28af469fbbd7cd46cc838b 100644
--- a/mojo/edk/system/slave_connection_manager.h
+++ b/mojo/edk/system/slave_connection_manager.h
@@ -8,9 +8,9 @@
#include <memory>
#include "base/threading/thread.h"
-#include "mojo/edk/embedder/platform_task_runner.h"
#include "mojo/edk/embedder/scoped_platform_handle.h"
#include "mojo/edk/embedder/slave_process_delegate.h"
+#include "mojo/edk/platform/task_runner.h"
#include "mojo/edk/system/connection_manager.h"
#include "mojo/edk/system/raw_channel.h"
#include "mojo/edk/util/mutex.h"
@@ -50,10 +50,9 @@ class SlaveConnectionManager final : public ConnectionManager,
// |delegate_thread_task_runner| should be the task runner for the "delegate
// thread", on which |slave_process_delegate|'s methods will be called. Both
// must stay alive at least until after |Shutdown()| has been called.
- void Init(
- util::RefPtr<embedder::PlatformTaskRunner>&& delegate_thread_task_runner,
- embedder::SlaveProcessDelegate* slave_process_delegate,
- embedder::ScopedPlatformHandle platform_handle);
+ void Init(util::RefPtr<platform::TaskRunner>&& delegate_thread_task_runner,
+ embedder::SlaveProcessDelegate* slave_process_delegate,
+ embedder::ScopedPlatformHandle platform_handle);
// |ConnectionManager| methods:
void Shutdown() override;
@@ -98,7 +97,7 @@ class SlaveConnectionManager final : public ConnectionManager,
// in |Shutdown()| after |private_thread_| is dead. Thus it's safe to "use" on
// |private_thread_|. (Note that |slave_process_delegate_| may only be called
// from the delegate thread.)
- util::RefPtr<embedder::PlatformTaskRunner> delegate_thread_task_runner_;
+ util::RefPtr<platform::TaskRunner> delegate_thread_task_runner_;
embedder::SlaveProcessDelegate* slave_process_delegate_;
// This is a private I/O thread on which this class does the bulk of its work.

Powered by Google App Engine
This is Rietveld 408576698