Chromium Code Reviews

Side by Side Diff: services/js/system/mojo_runner_delegate.h

Issue 1783623005: Add mojo/c/system/{time.h,wait.h}. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 SERVICES_JS_SYSTEM_MOJO_RUNNER_DELEGATE_H_ 5 #ifndef SERVICES_JS_SYSTEM_MOJO_RUNNER_DELEGATE_H_
6 #define SERVICES_JS_SYSTEM_MOJO_RUNNER_DELEGATE_H_ 6 #define SERVICES_JS_SYSTEM_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/public/c/system/types.h" 10 #include "mojo/public/c/system/handle.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 namespace js { 13 namespace js {
14 14
15 class MojoRunnerDelegate : public gin::ModuleRunnerDelegate { 15 class MojoRunnerDelegate : public gin::ModuleRunnerDelegate {
16 public: 16 public:
17 MojoRunnerDelegate(); 17 MojoRunnerDelegate();
18 ~MojoRunnerDelegate() override; 18 ~MojoRunnerDelegate() override;
19 19
20 void Start(gin::Runner* runner, MojoHandle pipe, const std::string& module); 20 void Start(gin::Runner* runner, MojoHandle pipe, const std::string& module);
21 21
22 private: 22 private:
23 // From ModuleRunnerDelegate: 23 // From ModuleRunnerDelegate:
24 void UnhandledException(gin::ShellRunner* runner, 24 void UnhandledException(gin::ShellRunner* runner,
25 gin::TryCatch& try_catch) override; 25 gin::TryCatch& try_catch) override;
26 26
27 DISALLOW_COPY_AND_ASSIGN(MojoRunnerDelegate); 27 DISALLOW_COPY_AND_ASSIGN(MojoRunnerDelegate);
28 }; 28 };
29 29
30 } // namespace js 30 } // namespace js
31 } // namespace mojo 31 } // namespace mojo
32 32
33 #endif // SERVICES_JS_SYSTEM_MOJO_RUNNER_DELEGATE_H_ 33 #endif // SERVICES_JS_SYSTEM_MOJO_RUNNER_DELEGATE_H_
OLDNEW

Powered by Google App Engine