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 27 matching lines...) Expand all Loading... |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
40 class ExceptionState; | 40 class ExceptionState; |
41 class Frame; | 41 class Frame; |
42 class KURL; | 42 class KURL; |
43 | 43 |
44 class ApplicationCache FINAL : public ScriptWrappable, public RefCounted<Applica
tionCache>, public EventTargetWithInlineData, public DOMWindowProperty { | 44 class ApplicationCache FINAL : public ScriptWrappable, public RefCounted<Applica
tionCache>, public EventTargetWithInlineData, public DOMWindowProperty { |
45 REFCOUNTED_EVENT_TARGET(ApplicationCache); | 45 REFCOUNTED_EVENT_TARGET(ApplicationCache); |
46 public: | 46 public: |
47 static PassRefPtr<ApplicationCache> create(Frame* frame) { return adoptRef(n
ew ApplicationCache(frame)); } | 47 static PassRefPtr<ApplicationCache> create(Frame* frame) { return adoptRef(n
ew ApplicationCache(frame)); } |
48 ~ApplicationCache() { ASSERT(!m_frame); } | 48 virtual ~ApplicationCache() { ASSERT(!m_frame); } |
49 | 49 |
50 virtual void willDestroyGlobalObjectInFrame() OVERRIDE; | 50 virtual void willDestroyGlobalObjectInFrame() OVERRIDE; |
51 | 51 |
52 unsigned short status() const; | 52 unsigned short status() const; |
53 void update(ExceptionState&); | 53 void update(ExceptionState&); |
54 void swapCache(ExceptionState&); | 54 void swapCache(ExceptionState&); |
55 void abort(); | 55 void abort(); |
56 | 56 |
57 // Explicitly named attribute event listener helpers | 57 // Explicitly named attribute event listener helpers |
58 | 58 |
(...skipping 13 matching lines...) Expand all Loading... |
72 | 72 |
73 private: | 73 private: |
74 explicit ApplicationCache(Frame*); | 74 explicit ApplicationCache(Frame*); |
75 | 75 |
76 ApplicationCacheHost* applicationCacheHost() const; | 76 ApplicationCacheHost* applicationCacheHost() const; |
77 }; | 77 }; |
78 | 78 |
79 } // namespace WebCore | 79 } // namespace WebCore |
80 | 80 |
81 #endif // ApplicationCache_h | 81 #endif // ApplicationCache_h |
OLD | NEW |