OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2009, Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef ApplicationCacheHost_h | 31 #ifndef ApplicationCacheHost_h |
32 #define ApplicationCacheHost_h | 32 #define ApplicationCacheHost_h |
33 | 33 |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "platform/weborigin/KURL.h" | 35 #include "platform/weborigin/KURL.h" |
36 #include "public/platform/WebApplicationCacheHostClient.h" | 36 #include "public/platform/WebApplicationCacheHostClient.h" |
37 #include "wtf/Allocator.h" | 37 #include "wtf/Allocator.h" |
| 38 #include "wtf/OwnPtr.h" |
38 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
39 #include <memory> | |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 class ApplicationCache; | 42 class ApplicationCache; |
43 class DocumentLoader; | 43 class DocumentLoader; |
44 class ResourceRequest; | 44 class ResourceRequest; |
45 class ResourceResponse; | 45 class ResourceResponse; |
46 | 46 |
47 class ApplicationCacheHost final : public GarbageCollectedFinalized<Applicat
ionCacheHost>, public WebApplicationCacheHostClient { | 47 class ApplicationCacheHost final : public GarbageCollectedFinalized<Applicat
ionCacheHost>, public WebApplicationCacheHostClient { |
48 WTF_MAKE_NONCOPYABLE(ApplicationCacheHost); | 48 WTF_MAKE_NONCOPYABLE(ApplicationCacheHost); |
49 public: | 49 public: |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 } | 168 } |
169 }; | 169 }; |
170 | 170 |
171 WeakMember<ApplicationCache> m_domApplicationCache; | 171 WeakMember<ApplicationCache> m_domApplicationCache; |
172 Member<DocumentLoader> m_documentLoader; | 172 Member<DocumentLoader> m_documentLoader; |
173 bool m_defersEvents; // Events are deferred until after document onload. | 173 bool m_defersEvents; // Events are deferred until after document onload. |
174 Vector<DeferredEvent> m_deferredEvents; | 174 Vector<DeferredEvent> m_deferredEvents; |
175 | 175 |
176 void dispatchDOMEvent(EventID, int progressTotal, int progressDone, WebA
pplicationCacheHost::ErrorReason, const String& errorURL, int errorStatus, const
String& errorMessage); | 176 void dispatchDOMEvent(EventID, int progressTotal, int progressDone, WebA
pplicationCacheHost::ErrorReason, const String& errorURL, int errorStatus, const
String& errorMessage); |
177 | 177 |
178 std::unique_ptr<WebApplicationCacheHost> m_host; | 178 OwnPtr<WebApplicationCacheHost> m_host; |
179 }; | 179 }; |
180 | 180 |
181 } // namespace blink | 181 } // namespace blink |
182 | 182 |
183 #endif // ApplicationCacheHost_h | 183 #endif // ApplicationCacheHost_h |
OLD | NEW |