| Index: mojo/edk/platform/task_runner.h
|
| diff --git a/mojo/edk/embedder/platform_task_runner.h b/mojo/edk/platform/task_runner.h
|
| similarity index 74%
|
| rename from mojo/edk/embedder/platform_task_runner.h
|
| rename to mojo/edk/platform/task_runner.h
|
| index 1561c6b023b699211cf25e34c09c9168ef51cbf4..e54213f34bd5da7178cbae6b881771d3b09b6348 100644
|
| --- a/mojo/edk/embedder/platform_task_runner.h
|
| +++ b/mojo/edk/platform/task_runner.h
|
| @@ -5,23 +5,22 @@
|
| // This file provides an interface for "task runners", which are used within the
|
| // EDK itself.
|
|
|
| -#ifndef MOJO_EDK_EMBEDDER_PLATFORM_TASK_RUNNER_H_
|
| -#define MOJO_EDK_EMBEDDER_PLATFORM_TASK_RUNNER_H_
|
| +#ifndef MOJO_EDK_PLATFORM_TASK_RUNNER_H_
|
| +#define MOJO_EDK_PLATFORM_TASK_RUNNER_H_
|
|
|
| #include "base/callback_forward.h"
|
| #include "mojo/edk/util/ref_counted.h"
|
| #include "mojo/public/cpp/system/macros.h"
|
|
|
| namespace mojo {
|
| -namespace embedder {
|
| +namespace platform {
|
|
|
| // Interface for "task runners", which can be used to schedule tasks to be run
|
| // asynchronously (possibly on a different thread). Implementations must be
|
| // thread-safe.
|
| -class PlatformTaskRunner
|
| - : public util::RefCountedThreadSafe<PlatformTaskRunner> {
|
| +class TaskRunner : public util::RefCountedThreadSafe<TaskRunner> {
|
| public:
|
| - virtual ~PlatformTaskRunner() {}
|
| + virtual ~TaskRunner() {}
|
|
|
| // Posts a task to this task runner (i.e., schedule the task). The task must
|
| // be run (insofar as this can be guaranteed). (This must not run the task
|
| @@ -35,13 +34,13 @@ class PlatformTaskRunner
|
| virtual bool RunsTasksOnCurrentThread() const = 0;
|
|
|
| protected:
|
| - PlatformTaskRunner() {}
|
| + TaskRunner() {}
|
|
|
| private:
|
| - MOJO_DISALLOW_COPY_AND_ASSIGN(PlatformTaskRunner);
|
| + MOJO_DISALLOW_COPY_AND_ASSIGN(TaskRunner);
|
| };
|
|
|
| -} // namespace embedder
|
| +} // namespace platform
|
| } // namespace mojo
|
|
|
| -#endif // MOJO_EDK_EMBEDDER_PLATFORM_TASK_RUNNER_H_
|
| +#endif // MOJO_EDK_PLATFORM_TASK_RUNNER_H_
|
|
|