OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SKY_ENGINE_CORE_APP_ABSTRACT_MODULE_H_ | |
6 #define SKY_ENGINE_CORE_APP_ABSTRACT_MODULE_H_ | |
7 | |
8 #include "core/dom/ContextLifecycleObserver.h" | |
9 #include "core/dom/Document.h" | |
10 #include "core/events/EventTarget.h" | |
11 #include "wtf/RefCounted.h" | |
12 | |
13 namespace blink { | |
14 | |
15 class AbstractModule : public RefCounted<AbstractModule> | |
16 , public EventTargetWithInlineData | |
17 , public ContextLifecycleObserver { | |
18 DEFINE_WRAPPERTYPEINFO(); | |
19 REFCOUNTED_EVENT_TARGET(AbstractModule); | |
20 public: | |
21 virtual ~AbstractModule(); | |
22 | |
23 Document* document() const { return m_document.get(); } | |
24 const String& url() const { return m_url; } | |
25 | |
26 protected: | |
27 AbstractModule(ExecutionContext*, Document*, const String& url); | |
28 | |
29 private: | |
30 ExecutionContext* executionContext() const override; | |
31 | |
32 RefPtr<Document> m_document; | |
eseidel
2014/11/10 21:46:45
document_
abarth-chromium
2014/11/10 22:14:21
Done
| |
33 String m_url; | |
34 }; | |
35 | |
36 } // namespace blink | |
37 | |
38 #endif // SKY_ENGINE_CORE_APP_ABSTRACT_MODULE_H_ | |
OLD | NEW |