Home | History | Annotate | Download | only in js
      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.
      4 
      5 #ifndef MOJO_APPS_JS_MOJO_RUNNER_DELEGATE_H_
      6 #define MOJO_APPS_JS_MOJO_RUNNER_DELEGATE_H_
      7 
      8 #include "base/compiler_specific.h"
      9 #include "gin/modules/module_runner_delegate.h"
     10 #include "mojo/public/system/core.h"
     11 
     12 namespace mojo {
     13 namespace apps {
     14 
     15 class MojoRunnerDelegate : public gin::ModuleRunnerDelegate {
     16  public:
     17   MojoRunnerDelegate();
     18   virtual ~MojoRunnerDelegate();
     19 
     20   void Start(gin::Runner* runner, MojoHandle pipe, const std::string& module);
     21 
     22  private:
     23   // From ModuleRunnerDelegate:
     24   virtual void UnhandledException(gin::Runner* runner,
     25                                   gin::TryCatch& try_catch) OVERRIDE;
     26 
     27   DISALLOW_COPY_AND_ASSIGN(MojoRunnerDelegate);
     28 };
     29 
     30 }  // namespace apps
     31 }  // namespace mojo
     32 
     33 #endif  // MOJO_APPS_JS_MOJO_RUNNER_DELEGATE_H_
     34