| OLD | NEW |
| 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 #include "config.h" | 5 #include "config.h" |
| 6 #include "core/app/Module.h" | 6 #include "core/app/Module.h" |
| 7 | 7 |
| 8 #include "core/app/Application.h" | 8 #include "core/app/Application.h" |
| 9 #include "core/EventTargetNames.h" | 9 #include "core/EventTargetNames.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 Module::Module(ExecutionContext* context, | 13 Module::Module(ExecutionContext* context, |
| 14 Application* application, | 14 Application* application, |
| 15 PassRefPtr<Document> document, | 15 PassRefPtr<Document> document, |
| 16 const String& url) | 16 const String& url) |
| 17 : AbstractModule(context, document, url), | 17 : AbstractModule(context, document, url), |
| 18 application_(application) { | 18 application_(application) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 Module::~Module() { | 21 Module::~Module() { |
| 22 } | 22 } |
| 23 | 23 |
| 24 const AtomicString& Module::interfaceName() const { | 24 const AtomicString& Module::interfaceName() const { |
| 25 return EventTargetNames::Module; | 25 return EventTargetNames::Module; |
| 26 } | 26 } |
| 27 | 27 |
| 28 Application* Module::GetApplication() { |
| 29 return application(); |
| 30 } |
| 31 |
| 28 } // namespace blink | 32 } // namespace blink |
| OLD | NEW |