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

Unified Diff: mojo/runner/in_process_native_runner.h

Issue 1107233002: Move runner stuff into a runner namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 8 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
« no previous file with comments | « mojo/runner/desktop/main.cc ('k') | mojo/runner/in_process_native_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/in_process_native_runner.h
diff --git a/mojo/runner/in_process_native_runner.h b/mojo/runner/in_process_native_runner.h
index e8afcfd987a46f26c2a7efad8a58fa8bc33b0d32..3e1e2e0d4605add72acc55b90508eefa90f35d88 100644
--- a/mojo/runner/in_process_native_runner.h
+++ b/mojo/runner/in_process_native_runner.h
@@ -15,13 +15,13 @@
#include "mojo/shell/native_runner.h"
namespace mojo {
-namespace shell {
+namespace runner {
class Context;
// An implementation of |NativeRunner| that loads/runs the given app (from the
// file system) on a separate thread (in the current process).
-class InProcessNativeRunner : public NativeRunner,
+class InProcessNativeRunner : public shell::NativeRunner,
public base::DelegateSimpleThread::Delegate {
public:
explicit InProcessNativeRunner(Context* context);
@@ -29,7 +29,7 @@ class InProcessNativeRunner : public NativeRunner,
// |NativeRunner| method:
void Start(const base::FilePath& app_path,
- NativeApplicationCleanup cleanup,
+ shell::NativeApplicationCleanup cleanup,
InterfaceRequest<Application> application_request,
const base::Closure& app_completed_callback) override;
@@ -38,7 +38,7 @@ class InProcessNativeRunner : public NativeRunner,
void Run() override;
base::FilePath app_path_;
- NativeApplicationCleanup cleanup_;
+ shell::NativeApplicationCleanup cleanup_;
InterfaceRequest<Application> application_request_;
base::Callback<bool(void)> app_completed_callback_runner_;
@@ -48,12 +48,12 @@ class InProcessNativeRunner : public NativeRunner,
DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunner);
};
-class InProcessNativeRunnerFactory : public NativeRunnerFactory {
+class InProcessNativeRunnerFactory : public shell::NativeRunnerFactory {
public:
explicit InProcessNativeRunnerFactory(Context* context) : context_(context) {}
~InProcessNativeRunnerFactory() override {}
- scoped_ptr<NativeRunner> Create(const Options& options) override;
+ scoped_ptr<shell::NativeRunner> Create(const Options& options) override;
private:
Context* const context_;
@@ -61,7 +61,7 @@ class InProcessNativeRunnerFactory : public NativeRunnerFactory {
DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunnerFactory);
};
-} // namespace shell
+} // namespace runner
} // namespace mojo
#endif // MOJO_RUNNER_IN_PROCESS_NATIVE_RUNNER_H_
« no previous file with comments | « mojo/runner/desktop/main.cc ('k') | mojo/runner/in_process_native_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698