| 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 22 matching lines...) Expand all Loading... |
| 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/OwnPtr.h" | 37 #include "wtf/OwnPtr.h" |
| 38 #include "wtf/Vector.h" | 38 #include "wtf/Vector.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 class ApplicationCache; | 41 class ApplicationCache; |
| 42 class DocumentLoader; | 42 class DocumentLoader; |
| 43 class LocalFrame; | |
| 44 class ResourceLoader; | |
| 45 class ResourceError; | |
| 46 class ResourceRequest; | 43 class ResourceRequest; |
| 47 class ResourceResponse; | 44 class ResourceResponse; |
| 48 class SubstituteData; | |
| 49 | 45 |
| 50 class ApplicationCacheHost FINAL : public NoBaseWillBeGarbageCollectedFinali
zed<ApplicationCacheHost>, public WebApplicationCacheHostClient { | 46 class ApplicationCacheHost FINAL : public NoBaseWillBeGarbageCollectedFinali
zed<ApplicationCacheHost>, public WebApplicationCacheHostClient { |
| 51 WTF_MAKE_NONCOPYABLE(ApplicationCacheHost); | 47 WTF_MAKE_NONCOPYABLE(ApplicationCacheHost); |
| 52 public: | 48 public: |
| 53 static PassOwnPtrWillBeRawPtr<ApplicationCacheHost> create(DocumentLoade
r* loader) | 49 static PassOwnPtrWillBeRawPtr<ApplicationCacheHost> create(DocumentLoade
r* loader) |
| 54 { | 50 { |
| 55 return adoptPtrWillBeNoop(new ApplicationCacheHost(loader)); | 51 return adoptPtrWillBeNoop(new ApplicationCacheHost(loader)); |
| 56 } | 52 } |
| 57 virtual ~ApplicationCacheHost(); | 53 virtual ~ApplicationCacheHost(); |
| 58 | 54 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 Vector<DeferredEvent> m_deferredEvents; | 169 Vector<DeferredEvent> m_deferredEvents; |
| 174 | 170 |
| 175 void dispatchDOMEvent(EventID, int progressTotal, int progressDone, WebA
pplicationCacheHost::ErrorReason, const String& errorURL, int errorStatus, const
String& errorMessage); | 171 void dispatchDOMEvent(EventID, int progressTotal, int progressDone, WebA
pplicationCacheHost::ErrorReason, const String& errorURL, int errorStatus, const
String& errorMessage); |
| 176 | 172 |
| 177 OwnPtr<WebApplicationCacheHost> m_host; | 173 OwnPtr<WebApplicationCacheHost> m_host; |
| 178 }; | 174 }; |
| 179 | 175 |
| 180 } // namespace blink | 176 } // namespace blink |
| 181 | 177 |
| 182 #endif // ApplicationCacheHost_h | 178 #endif // ApplicationCacheHost_h |
| OLD | NEW |