1 // Copyright 2013 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.
5 #ifndef MOJO_APPS_JS_MOJO_RUNNER_DELEGATE_H_
6 #define MOJO_APPS_JS_MOJO_RUNNER_DELEGATE_H_
8 #include "base/macros.h"
9 #include "gin/modules/module_runner_delegate.h"
10 #include "mojo/public/c/system/core.h"
15 class MojoRunnerDelegate
: public gin::ModuleRunnerDelegate
{
18 ~MojoRunnerDelegate() override
;
20 void Start(gin::Runner
* runner
, MojoHandle pipe
, const std::string
& module
);
23 // From ModuleRunnerDelegate:
24 void UnhandledException(gin::ShellRunner
* runner
,
25 gin::TryCatch
& try_catch
) override
;
27 DISALLOW_COPY_AND_ASSIGN(MojoRunnerDelegate
);
33 #endif // MOJO_APPS_JS_MOJO_RUNNER_DELEGATE_H_