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

Side by Side Diff: mojo/runner/out_of_process_native_runner.h

Issue 1344933002: Clean up some unused methods from ApplicationManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 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
« no previous file with comments | « mojo/runner/native_runner_unittest.cc ('k') | mojo/runner/out_of_process_native_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MOJO_RUNNER_OUT_OF_PROCESS_NATIVE_RUNNER_H_ 5 #ifndef MOJO_RUNNER_OUT_OF_PROCESS_NATIVE_RUNNER_H_
6 #define MOJO_RUNNER_OUT_OF_PROCESS_NATIVE_RUNNER_H_ 6 #define MOJO_RUNNER_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/shell/native_runner.h" 12 #include "mojo/shell/native_runner.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 namespace runner { 15 namespace runner {
16 16
17 class ChildProcessHost; 17 class ChildProcessHost;
18 class Context; 18 class Context;
19 19
20 // 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
21 // file system) in a separate process (of its own). 21 // file system) in a separate process (of its own).
22 class OutOfProcessNativeRunner : public shell::NativeRunner { 22 class OutOfProcessNativeRunner : public shell::NativeRunner {
23 public: 23 public:
24 explicit OutOfProcessNativeRunner(Context* context); 24 explicit OutOfProcessNativeRunner(Context* context);
25 ~OutOfProcessNativeRunner() override; 25 ~OutOfProcessNativeRunner() override;
26 26
27 // |NativeRunner| method: 27 // |NativeRunner| method:
28 void Start(const base::FilePath& app_path, 28 void Start(const base::FilePath& app_path,
29 bool start_sandboxed, 29 bool start_sandboxed,
30 shell::NativeApplicationCleanup cleanup,
31 InterfaceRequest<Application> application_request, 30 InterfaceRequest<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 // |ChildController::StartApp()| callback: 34 // |ChildController::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_;
42 41
43 scoped_ptr<ChildProcessHost> child_process_host_; 42 scoped_ptr<ChildProcessHost> child_process_host_;
44 43
45 DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunner); 44 DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunner);
46 }; 45 };
47 46
48 class OutOfProcessNativeRunnerFactory : public shell::NativeRunnerFactory { 47 class OutOfProcessNativeRunnerFactory : public shell::NativeRunnerFactory {
49 public: 48 public:
50 explicit OutOfProcessNativeRunnerFactory(Context* context) 49 explicit OutOfProcessNativeRunnerFactory(Context* context)
51 : context_(context) {} 50 : context_(context) {}
52 ~OutOfProcessNativeRunnerFactory() override {} 51 ~OutOfProcessNativeRunnerFactory() override {}
53 52
54 scoped_ptr<shell::NativeRunner> Create(const Options& options) override; 53 scoped_ptr<shell::NativeRunner> Create() 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 runner 61 } // namespace runner
63 } // namespace mojo 62 } // namespace mojo
64 63
65 #endif // MOJO_RUNNER_OUT_OF_PROCESS_NATIVE_RUNNER_H_ 64 #endif // MOJO_RUNNER_OUT_OF_PROCESS_NATIVE_RUNNER_H_
OLDNEW
« no previous file with comments | « mojo/runner/native_runner_unittest.cc ('k') | mojo/runner/out_of_process_native_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698