OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #ifndef DOMApplicationCache_h | 26 #ifndef DOMApplicationCache_h |
27 #define DOMApplicationCache_h | 27 #define DOMApplicationCache_h |
28 | 28 |
29 #include "bindings/v8/ScriptWrappable.h" | 29 #include "bindings/v8/ScriptWrappable.h" |
30 #include "core/dom/EventNames.h" | 30 #include "core/dom/EventNames.h" |
31 #include "core/dom/EventTarget.h" | 31 #include "core/dom/EventTarget.h" |
32 #include "core/loader/appcache/ApplicationCacheHost.h" | 32 #include "core/loader/appcache/ApplicationCacheHost.h" |
33 #include "core/page/DOMWindowProperty.h" | 33 #include "core/page/DOMWindowProperty.h" |
34 #include <wtf/Forward.h> | 34 #include "wtf/Forward.h" |
35 #include <wtf/HashMap.h> | 35 #include "wtf/PassRefPtr.h" |
36 #include <wtf/PassRefPtr.h> | 36 #include "wtf/RefCounted.h" |
37 #include <wtf/RefCounted.h> | |
38 #include <wtf/text/AtomicStringHash.h> | |
39 #include <wtf/Vector.h> | |
40 | 37 |
41 namespace WebCore { | 38 namespace WebCore { |
42 | 39 |
43 class Frame; | 40 class Frame; |
44 class KURL; | 41 class KURL; |
45 | 42 |
46 class DOMApplicationCache : public ScriptWrappable, public RefCounted<DOMApplica
tionCache>, public EventTarget, public DOMWindowProperty { | 43 class DOMApplicationCache : public ScriptWrappable, public RefCounted<DOMApplica
tionCache>, public EventTarget, public DOMWindowProperty { |
47 public: | 44 public: |
48 static PassRefPtr<DOMApplicationCache> create(Frame* frame) { return adoptRe
f(new DOMApplicationCache(frame)); } | 45 static PassRefPtr<DOMApplicationCache> create(Frame* frame) { return adoptRe
f(new DOMApplicationCache(frame)); } |
49 ~DOMApplicationCache() { ASSERT(!m_frame); } | 46 ~DOMApplicationCache() { ASSERT(!m_frame); } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 virtual EventTargetData* ensureEventTargetData(); | 82 virtual EventTargetData* ensureEventTargetData(); |
86 | 83 |
87 ApplicationCacheHost* applicationCacheHost() const; | 84 ApplicationCacheHost* applicationCacheHost() const; |
88 | 85 |
89 EventTargetData m_eventTargetData; | 86 EventTargetData m_eventTargetData; |
90 }; | 87 }; |
91 | 88 |
92 } // namespace WebCore | 89 } // namespace WebCore |
93 | 90 |
94 #endif // DOMApplicationCache_h | 91 #endif // DOMApplicationCache_h |
OLD | NEW |