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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class KURL; | 44 class KURL; |
45 | 45 |
46 class DOMApplicationCache : public RefCountedGarbageCollected<DOMApplicationCach
e>, public ScriptWrappable, public EventTarget, public DOMWindowProperty { | 46 class DOMApplicationCache : public RefCountedGarbageCollected<DOMApplicationCach
e>, public ScriptWrappable, public EventTarget, public DOMWindowProperty { |
47 DECLARE_GC_INFO | 47 DECLARE_GC_INFO |
48 public: | 48 public: |
49 static PassRefPtr<DOMApplicationCache> create(Frame* frame) { return adoptRe
f(new DOMApplicationCache(frame)); } | 49 static PassRefPtr<DOMApplicationCache> create(Frame* frame) { return adoptRe
f(new DOMApplicationCache(frame)); } |
50 ~DOMApplicationCache() { ASSERT(!m_frame); } | 50 ~DOMApplicationCache() { ASSERT(!m_frame); } |
51 | 51 |
52 virtual void trace(Visitor*) { } | 52 virtual void trace(Visitor*) { } |
53 | 53 |
54 virtual void visitWith(Visitor* visitor) const OVERRIDE | 54 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
55 { | 55 { |
56 visitor->visit(this); | 56 visitor->mark(this); |
57 } | 57 } |
58 | 58 |
59 virtual void willDestroyGlobalObjectInFrame() OVERRIDE; | 59 virtual void willDestroyGlobalObjectInFrame() OVERRIDE; |
60 | 60 |
61 unsigned short status() const; | 61 unsigned short status() const; |
62 void update(ExceptionCode&); | 62 void update(ExceptionCode&); |
63 void swapCache(ExceptionCode&); | 63 void swapCache(ExceptionCode&); |
64 void abort(); | 64 void abort(); |
65 | 65 |
66 // EventTarget impl | 66 // EventTarget impl |
(...skipping 24 matching lines...) Expand all Loading... |
91 virtual EventTargetData* ensureEventTargetData(); | 91 virtual EventTargetData* ensureEventTargetData(); |
92 | 92 |
93 ApplicationCacheHost* applicationCacheHost() const; | 93 ApplicationCacheHost* applicationCacheHost() const; |
94 | 94 |
95 EventTargetData m_eventTargetData; | 95 EventTargetData m_eventTargetData; |
96 }; | 96 }; |
97 | 97 |
98 } // namespace WebCore | 98 } // namespace WebCore |
99 | 99 |
100 #endif // DOMApplicationCache_h | 100 #endif // DOMApplicationCache_h |
OLD | NEW |