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