Index: sky/engine/core/app/AbstractModule.h |
diff --git a/sky/engine/core/app/AbstractModule.h b/sky/engine/core/app/AbstractModule.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6405354eb9d4db87b236123fd2ed813b1275895c |
--- /dev/null |
+++ b/sky/engine/core/app/AbstractModule.h |
@@ -0,0 +1,38 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef SKY_ENGINE_CORE_APP_ABSTRACT_MODULE_H_ |
+#define SKY_ENGINE_CORE_APP_ABSTRACT_MODULE_H_ |
+ |
+#include "core/dom/ContextLifecycleObserver.h" |
+#include "core/dom/Document.h" |
+#include "core/events/EventTarget.h" |
+#include "wtf/RefCounted.h" |
+ |
+namespace blink { |
+ |
+class AbstractModule : public RefCounted<AbstractModule> |
+ , public EventTargetWithInlineData |
+ , public ContextLifecycleObserver { |
+ DEFINE_WRAPPERTYPEINFO(); |
+ REFCOUNTED_EVENT_TARGET(AbstractModule); |
+public: |
+ virtual ~AbstractModule(); |
+ |
+ Document* document() const { return m_document.get(); } |
+ const String& url() const { return m_url; } |
+ |
+protected: |
+ AbstractModule(ExecutionContext*, Document*, const String& url); |
+ |
+private: |
+ ExecutionContext* executionContext() const override; |
+ |
+ RefPtr<Document> m_document; |
eseidel
2014/11/10 21:46:45
document_
abarth-chromium
2014/11/10 22:14:21
Done
|
+ String m_url; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // SKY_ENGINE_CORE_APP_ABSTRACT_MODULE_H_ |