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

Side by Side Diff: mojo/public/bindings/js/runner_delegate.h

Issue 62333018: Implement Asynchronous Module Definition API for Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar testing Created 7 years, 1 month 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
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_PUBLIC_BINDINGS_JS_RUNNER_H_ 5 #ifndef MOJO_PUBLIC_BINDINGS_JS_RUNNER_H_
6 #define MOJO_PUBLIC_BINDINGS_JS_RUNNER_H_ 6 #define MOJO_PUBLIC_BINDINGS_JS_RUNNER_H_
7 7
8 #include "gin/runner.h" 8 #include "gin/runner.h"
9 #include "mojo/public/system/macros.h" 9 #include "mojo/public/system/macros.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 namespace js { 12 namespace js {
13 13
14 class RunnerDelegate : public gin::RunnerDelegate { 14 class RunnerDelegate : public gin::RunnerDelegate {
15 public: 15 public:
16 RunnerDelegate(); 16 RunnerDelegate();
17 virtual ~RunnerDelegate(); 17 virtual ~RunnerDelegate();
18 18
19 virtual v8::Handle<v8::Object> CreateRootObject( 19 virtual v8::Handle<v8::ObjectTemplate> GetGlobalTemplate(
20 gin::Runner* runner) MOJO_OVERRIDE; 20 gin::Runner* runner) MOJO_OVERRIDE;
21 21
22 virtual void DidCreateContext(gin::Runner* runner) MOJO_OVERRIDE;
23
22 private: 24 private:
23 MOJO_DISALLOW_COPY_AND_ASSIGN(RunnerDelegate); 25 MOJO_DISALLOW_COPY_AND_ASSIGN(RunnerDelegate);
24 }; 26 };
25 27
26 } // namespace js 28 } // namespace js
27 } // namespace mojo 29 } // namespace mojo
28 30
29 #endif // MOJO_PUBLIC_BINDINGS_JS_RUNNER_H_ 31 #endif // MOJO_PUBLIC_BINDINGS_JS_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698