OLD | NEW |
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 scoped_ptr<base::DelegateSimpleThread> thread_; | 45 scoped_ptr<base::DelegateSimpleThread> thread_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunner); | 47 DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunner); |
48 }; | 48 }; |
49 | 49 |
50 class InProcessNativeRunnerFactory : public shell::NativeRunnerFactory { | 50 class InProcessNativeRunnerFactory : public shell::NativeRunnerFactory { |
51 public: | 51 public: |
52 explicit InProcessNativeRunnerFactory(Context* context) : context_(context) {} | 52 explicit InProcessNativeRunnerFactory(Context* context) : context_(context) {} |
53 ~InProcessNativeRunnerFactory() override {} | 53 ~InProcessNativeRunnerFactory() override {} |
54 | 54 |
55 scoped_ptr<shell::NativeRunner> Create() override; | 55 scoped_ptr<shell::NativeRunner> Create( |
| 56 const base::FilePath& app_path) override; |
56 | 57 |
57 private: | 58 private: |
58 Context* const context_; | 59 Context* const context_; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunnerFactory); | 61 DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunnerFactory); |
61 }; | 62 }; |
62 | 63 |
63 } // namespace runner | 64 } // namespace runner |
64 } // namespace mojo | 65 } // namespace mojo |
65 | 66 |
66 #endif // MOJO_RUNNER_IN_PROCESS_NATIVE_RUNNER_H_ | 67 #endif // MOJO_RUNNER_IN_PROCESS_NATIVE_RUNNER_H_ |
OLD | NEW |