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

Side by Side Diff: services/js/js_app_runner_delegate.h

Issue 780213002: Put code in //services/js in namespace js (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_JS_APP_RUNNER_DELEGATE_H_ 5 #ifndef SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_
6 #define SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_ 6 #define SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_
7 7
8 #include "gin/modules/module_runner_delegate.h" 8 #include "gin/modules/module_runner_delegate.h"
9 #include "gin/shell_runner.h" 9 #include "gin/shell_runner.h"
10 #include "gin/try_catch.h" 10 #include "gin/try_catch.h"
11 11
12 namespace mojo {
13 namespace js { 12 namespace js {
14 13
15 class JSAppRunnerDelegate : public gin::ModuleRunnerDelegate { 14 class JSAppRunnerDelegate : public gin::ModuleRunnerDelegate {
16 public: 15 public:
17 JSAppRunnerDelegate(); 16 JSAppRunnerDelegate();
18 ~JSAppRunnerDelegate() override; 17 ~JSAppRunnerDelegate() override;
19 18
20 // From ModuleRunnerDelegate: 19 // From ModuleRunnerDelegate:
21 void UnhandledException(gin::ShellRunner* runner, 20 void UnhandledException(gin::ShellRunner* runner,
22 gin::TryCatch& try_catch) override; 21 gin::TryCatch& try_catch) override;
23 22
24 private: 23 private:
25 DISALLOW_COPY_AND_ASSIGN(JSAppRunnerDelegate); 24 DISALLOW_COPY_AND_ASSIGN(JSAppRunnerDelegate);
26 }; 25 };
27 26
28 } // namespace js 27 } // namespace js
29 } // namespace mojo
30 28
31 #endif // SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_ 29 #endif // SERVICES_JS_JS_APP_RUNNER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698