| 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 SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_ | 5 #ifndef SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_ |
| 6 #define SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_ | 6 #define SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "gin/modules/module_runner_delegate.h" | 8 #include "gin/modules/module_runner_delegate.h" |
| 9 #include "gin/shell_runner.h" | 9 #include "gin/shell_runner.h" |
| 10 #include "gin/try_catch.h" | 10 #include "gin/try_catch.h" |
| 11 | 11 |
| 12 namespace mojo { | |
| 13 namespace js { | 12 namespace js { |
| 14 | 13 |
| 15 class JSAppRunnerDelegate : public gin::ModuleRunnerDelegate { | 14 class JSAppRunnerDelegate : public gin::ModuleRunnerDelegate { |
| 16 public: | 15 public: |
| 17 JSAppRunnerDelegate(); | 16 JSAppRunnerDelegate(); |
| 18 ~JSAppRunnerDelegate() override; | 17 ~JSAppRunnerDelegate() override; |
| 19 | 18 |
| 20 // From ModuleRunnerDelegate: | 19 // From ModuleRunnerDelegate: |
| 21 void UnhandledException(gin::ShellRunner* runner, | 20 void UnhandledException(gin::ShellRunner* runner, |
| 22 gin::TryCatch& try_catch) override; | 21 gin::TryCatch& try_catch) override; |
| 23 | 22 |
| 24 private: | 23 private: |
| 25 DISALLOW_COPY_AND_ASSIGN(JSAppRunnerDelegate); | 24 DISALLOW_COPY_AND_ASSIGN(JSAppRunnerDelegate); |
| 26 }; | 25 }; |
| 27 | 26 |
| 28 } // namespace js | 27 } // namespace js |
| 29 } // namespace mojo | |
| 30 | 28 |
| 31 #endif // SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_ | 29 #endif // SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_ |
| OLD | NEW |