Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: mojo/apps/js/mojo_runner_delegate.h

Issue 90203002: [Mojo] Remove static "bootstrap" state in mojo_js (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CHECK, CHECK, CHECK Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/apps/js/main.js ('k') | mojo/apps/js/mojo_runner_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_APPS_JS_MOJO_RUNNER_DELEGATE_H_ 5 #ifndef MOJO_APPS_JS_MOJO_RUNNER_DELEGATE_H_
6 #define MOJO_APPS_JS_MOJO_RUNNER_DELEGATE_H_ 6 #define MOJO_APPS_JS_MOJO_RUNNER_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "gin/modules/module_runner_delegate.h" 9 #include "gin/modules/module_runner_delegate.h"
10 #include "mojo/public/system/core.h"
10 11
11 namespace mojo { 12 namespace mojo {
12 namespace apps { 13 namespace apps {
13 14
14 class MojoRunnerDelegate : public gin::ModuleRunnerDelegate { 15 class MojoRunnerDelegate : public gin::ModuleRunnerDelegate {
15 public: 16 public:
16 MojoRunnerDelegate(); 17 MojoRunnerDelegate();
17 virtual ~MojoRunnerDelegate(); 18 virtual ~MojoRunnerDelegate();
18 19
20 void Start(gin::Runner* runner, MojoHandle pipe, const std::string& module);
21
19 private: 22 private:
20 // From ModuleRunnerDelegate: 23 // From ModuleRunnerDelegate:
21 virtual void UnhandledException(gin::Runner* runner, 24 virtual void UnhandledException(gin::Runner* runner,
22 gin::TryCatch& try_catch) OVERRIDE; 25 gin::TryCatch& try_catch) OVERRIDE;
23 26
24 DISALLOW_COPY_AND_ASSIGN(MojoRunnerDelegate); 27 DISALLOW_COPY_AND_ASSIGN(MojoRunnerDelegate);
25 }; 28 };
26 29
27 } // namespace apps 30 } // namespace apps
28 } // namespace mojo 31 } // namespace mojo
29 32
30 #endif // MOJO_APPS_JS_MOJO_RUNNER_DELEGATE_H_ 33 #endif // MOJO_APPS_JS_MOJO_RUNNER_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/apps/js/main.js ('k') | mojo/apps/js/mojo_runner_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698