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

Side by Side Diff: mojo/runner/in_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/context.cc ('k') | mojo/runner/in_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_IN_PROCESS_NATIVE_RUNNER_H_ 5 #ifndef MOJO_RUNNER_IN_PROCESS_NATIVE_RUNNER_H_
6 #define MOJO_RUNNER_IN_PROCESS_NATIVE_RUNNER_H_ 6 #define MOJO_RUNNER_IN_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"
(...skipping 12 matching lines...) Expand all
23 // file system) on a separate thread (in the current process). 23 // file system) on a separate thread (in the current process).
24 class InProcessNativeRunner : public shell::NativeRunner, 24 class InProcessNativeRunner : public shell::NativeRunner,
25 public base::DelegateSimpleThread::Delegate { 25 public base::DelegateSimpleThread::Delegate {
26 public: 26 public:
27 explicit InProcessNativeRunner(Context* context); 27 explicit InProcessNativeRunner(Context* context);
28 ~InProcessNativeRunner() override; 28 ~InProcessNativeRunner() override;
29 29
30 // |NativeRunner| method: 30 // |NativeRunner| method:
31 void Start(const base::FilePath& app_path, 31 void Start(const base::FilePath& app_path,
32 bool start_sandboxed, 32 bool start_sandboxed,
33 shell::NativeApplicationCleanup cleanup,
34 InterfaceRequest<Application> application_request, 33 InterfaceRequest<Application> application_request,
35 const base::Closure& app_completed_callback) override; 34 const base::Closure& app_completed_callback) override;
36 35
37 private: 36 private:
38 // |base::DelegateSimpleThread::Delegate| method: 37 // |base::DelegateSimpleThread::Delegate| method:
39 void Run() override; 38 void Run() override;
40 39
41 base::FilePath app_path_; 40 base::FilePath app_path_;
42 shell::NativeApplicationCleanup cleanup_;
43 InterfaceRequest<Application> application_request_; 41 InterfaceRequest<Application> application_request_;
44 base::Callback<bool(void)> app_completed_callback_runner_; 42 base::Callback<bool(void)> app_completed_callback_runner_;
45 43
46 base::ScopedNativeLibrary app_library_; 44 base::ScopedNativeLibrary app_library_;
47 scoped_ptr<base::DelegateSimpleThread> thread_; 45 scoped_ptr<base::DelegateSimpleThread> thread_;
48 46
49 DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunner); 47 DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunner);
50 }; 48 };
51 49
52 class InProcessNativeRunnerFactory : public shell::NativeRunnerFactory { 50 class InProcessNativeRunnerFactory : public shell::NativeRunnerFactory {
53 public: 51 public:
54 explicit InProcessNativeRunnerFactory(Context* context) : context_(context) {} 52 explicit InProcessNativeRunnerFactory(Context* context) : context_(context) {}
55 ~InProcessNativeRunnerFactory() override {} 53 ~InProcessNativeRunnerFactory() override {}
56 54
57 scoped_ptr<shell::NativeRunner> Create(const Options& options) override; 55 scoped_ptr<shell::NativeRunner> Create() override;
58 56
59 private: 57 private:
60 Context* const context_; 58 Context* const context_;
61 59
62 DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunnerFactory); 60 DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunnerFactory);
63 }; 61 };
64 62
65 } // namespace runner 63 } // namespace runner
66 } // namespace mojo 64 } // namespace mojo
67 65
68 #endif // MOJO_RUNNER_IN_PROCESS_NATIVE_RUNNER_H_ 66 #endif // MOJO_RUNNER_IN_PROCESS_NATIVE_RUNNER_H_
OLDNEW
« no previous file with comments | « mojo/runner/context.cc ('k') | mojo/runner/in_process_native_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698