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