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

Unified Diff: mojo/edk/base_edk/platform_task_runner_impl.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/base_edk/platform_task_runner_impl.h
diff --git a/mojo/edk/base_edk/platform_task_runner_impl.h b/mojo/edk/base_edk/platform_task_runner_impl.h
index 74eb8f8a7c78d71de8befea11cf8940375e26ff6..9e453326ffbc08aec30733b20b48eb58b87f02b8 100644
--- a/mojo/edk/base_edk/platform_task_runner_impl.h
+++ b/mojo/edk/base_edk/platform_task_runner_impl.h
@@ -2,9 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// This file "provides" abstractions for "task runners" and posting tasks to
-// them. The embedder is required to actually declare/define them in
-// platform_task_runner_impl.h. See below for details.
+// This file provides an implementation of |mojo::platform::TaskRunner| that
+// wraps a |base::TaskRunner|.
#ifndef MOJO_EDK_BASE_EDK_PLATFORM_TASK_RUNNER_IMPL_H_
#define MOJO_EDK_BASE_EDK_PLATFORM_TASK_RUNNER_IMPL_H_
@@ -12,17 +11,17 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/task_runner.h"
-#include "mojo/edk/embedder/platform_task_runner.h"
+#include "mojo/edk/platform/task_runner.h"
namespace base_edk {
-class PlatformTaskRunnerImpl : public mojo::embedder::PlatformTaskRunner {
+class PlatformTaskRunnerImpl : public mojo::platform::TaskRunner {
public:
explicit PlatformTaskRunnerImpl(
scoped_refptr<base::TaskRunner>&& base_task_runner);
~PlatformTaskRunnerImpl() override;
- // |mojo::embedder::PlatformTaskRunner| implementation:
+ // |mojo::platform::TaskRunner| implementation:
void PostTask(const base::Closure& task) override;
bool RunsTasksOnCurrentThread() const override;

Powered by Google App Engine
This is Rietveld 408576698