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

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

Issue 2405903003: Make //mojo/edk/js a component. (Closed)
Patch Set: Created 4 years, 2 months 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
« no previous file with comments | « mojo/edk/js/js_export.h ('k') | mojo/edk/js/support.h » ('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_EDK_JS_MOJO_RUNNER_DELEGATE_H_ 5 #ifndef MOJO_EDK_JS_MOJO_RUNNER_DELEGATE_H_
6 #define MOJO_EDK_JS_MOJO_RUNNER_DELEGATE_H_ 6 #define MOJO_EDK_JS_MOJO_RUNNER_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "gin/modules/module_runner_delegate.h" 9 #include "gin/modules/module_runner_delegate.h"
10 #include "mojo/edk/js/js_export.h"
10 #include "mojo/public/c/system/core.h" 11 #include "mojo/public/c/system/core.h"
11 12
12 namespace mojo { 13 namespace mojo {
13 namespace edk { 14 namespace edk {
14 namespace js { 15 namespace js {
15 16
16 class MojoRunnerDelegate : public gin::ModuleRunnerDelegate { 17 class MOJO_JS_EXPORT MojoRunnerDelegate : public gin::ModuleRunnerDelegate {
17 public: 18 public:
18 MojoRunnerDelegate(); 19 MojoRunnerDelegate();
19 ~MojoRunnerDelegate() override; 20 ~MojoRunnerDelegate() override;
20 21
21 void Start(gin::Runner* runner, MojoHandle pipe, const std::string& module); 22 void Start(gin::Runner* runner, MojoHandle pipe, const std::string& module);
22 23
23 private: 24 private:
24 // From ModuleRunnerDelegate: 25 // From ModuleRunnerDelegate:
25 void UnhandledException(gin::ShellRunner* runner, 26 void UnhandledException(gin::ShellRunner* runner,
26 gin::TryCatch& try_catch) override; 27 gin::TryCatch& try_catch) override;
27 28
28 DISALLOW_COPY_AND_ASSIGN(MojoRunnerDelegate); 29 DISALLOW_COPY_AND_ASSIGN(MojoRunnerDelegate);
29 }; 30 };
30 31
31 } // namespace js 32 } // namespace js
32 } // namespace edk 33 } // namespace edk
33 } // namespace mojo 34 } // namespace mojo
34 35
35 #endif // MOJO_EDK_JS_MOJO_RUNNER_DELEGATE_H_ 36 #endif // MOJO_EDK_JS_MOJO_RUNNER_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/edk/js/js_export.h ('k') | mojo/edk/js/support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698