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

Side by Side Diff: shell/out_of_process_native_runner.h

Issue 1067173003: Remove mojo:: part of mojo::shell:: nested namespace in //shell. (Closed) Base URL: https://github.com/domokit/mojo.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SHELL_OUT_OF_PROCESS_NATIVE_RUNNER_H_ 5 #ifndef SHELL_OUT_OF_PROCESS_NATIVE_RUNNER_H_
6 #define SHELL_OUT_OF_PROCESS_NATIVE_RUNNER_H_ 6 #define SHELL_OUT_OF_PROCESS_NATIVE_RUNNER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "mojo/public/cpp/bindings/error_handler.h" 12 #include "mojo/public/cpp/bindings/error_handler.h"
13 #include "shell/application_manager/native_runner.h" 13 #include "shell/application_manager/native_runner.h"
14 14
15 namespace mojo {
16 namespace shell { 15 namespace shell {
17 16
18 class Context; 17 class Context;
19 class ChildProcessHost; 18 class ChildProcessHost;
20 19
21 // An implementation of |NativeRunner| that loads/runs the given app (from the 20 // An implementation of |NativeRunner| that loads/runs the given app (from the
22 // file system) in a separate process (of its own). 21 // file system) in a separate process (of its own).
23 class OutOfProcessNativeRunner : public NativeRunner { 22 class OutOfProcessNativeRunner : public NativeRunner {
24 public: 23 public:
25 explicit OutOfProcessNativeRunner(Context* context); 24 explicit OutOfProcessNativeRunner(Context* context);
26 ~OutOfProcessNativeRunner() override; 25 ~OutOfProcessNativeRunner() override;
27 26
28 // |NativeRunner| method: 27 // |NativeRunner| method:
29 void Start(const base::FilePath& app_path, 28 void Start(const base::FilePath& app_path,
30 NativeApplicationCleanup cleanup, 29 NativeApplicationCleanup cleanup,
31 InterfaceRequest<Application> application_request, 30 mojo::InterfaceRequest<mojo::Application> application_request,
32 const base::Closure& app_completed_callback) override; 31 const base::Closure& app_completed_callback) override;
33 32
34 private: 33 private:
35 // |ChildProcessHost::StartApp()| callback: 34 // |ChildProcessHost::StartApp()| callback:
36 void AppCompleted(int32_t result); 35 void AppCompleted(int32_t result);
37 36
38 Context* const context_; 37 Context* const context_;
39 38
40 base::FilePath app_path_; 39 base::FilePath app_path_;
41 base::Closure app_completed_callback_; 40 base::Closure app_completed_callback_;
(...skipping 11 matching lines...) Expand all
53 52
54 scoped_ptr<NativeRunner> Create(const Options& options) override; 53 scoped_ptr<NativeRunner> Create(const Options& options) override;
55 54
56 private: 55 private:
57 Context* const context_; 56 Context* const context_;
58 57
59 DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunnerFactory); 58 DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunnerFactory);
60 }; 59 };
61 60
62 } // namespace shell 61 } // namespace shell
63 } // namespace mojo
64 62
65 #endif // SHELL_OUT_OF_PROCESS_NATIVE_RUNNER_H_ 63 #endif // SHELL_OUT_OF_PROCESS_NATIVE_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698