| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef ArchiveResourceCollection_h | 29 #ifndef ArchiveResourceCollection_h |
| 30 #define ArchiveResourceCollection_h | 30 #define ArchiveResourceCollection_h |
| 31 | 31 |
| 32 #include "core/loader/archive/ArchiveResource.h" | 32 #include "core/loader/archive/ArchiveResource.h" |
| 33 #include "core/loader/archive/MHTMLArchive.h" | 33 #include "core/loader/archive/MHTMLArchive.h" |
| 34 #include "wtf/HashMap.h" | 34 #include "wtf/HashMap.h" |
| 35 #include "wtf/RefCounted.h" | |
| 36 #include "wtf/text/WTFString.h" | 35 #include "wtf/text/WTFString.h" |
| 37 | 36 |
| 38 namespace WebCore { | 37 namespace WebCore { |
| 39 | 38 |
| 40 class KURL; | 39 class KURL; |
| 41 | 40 |
| 42 class ArchiveResourceCollection { | 41 class ArchiveResourceCollection { |
| 43 WTF_MAKE_NONCOPYABLE(ArchiveResourceCollection); WTF_MAKE_FAST_ALLOCATED; | 42 WTF_MAKE_NONCOPYABLE(ArchiveResourceCollection); WTF_MAKE_FAST_ALLOCATED; |
| 44 public: | 43 public: |
| 45 ArchiveResourceCollection(); | 44 ArchiveResourceCollection(); |
| 46 | 45 |
| 47 void addResource(PassRefPtr<ArchiveResource>); | 46 void addResource(PassRefPtr<ArchiveResource>); |
| 48 void addAllResources(MHTMLArchive*); | 47 void addAllResources(MHTMLArchive*); |
| 49 | 48 |
| 50 ArchiveResource* archiveResourceForURL(const KURL&); | 49 ArchiveResource* archiveResourceForURL(const KURL&); |
| 51 PassRefPtr<MHTMLArchive> popSubframeArchive(const String& frameName, const K
URL&); | 50 PassRefPtr<MHTMLArchive> popSubframeArchive(const String& frameName, const K
URL&); |
| 52 | 51 |
| 53 private: | 52 private: |
| 54 HashMap<String, RefPtr<ArchiveResource> > m_subresources; | 53 HashMap<String, RefPtr<ArchiveResource> > m_subresources; |
| 55 HashMap<String, RefPtr<MHTMLArchive> > m_subframes; | 54 HashMap<String, RefPtr<MHTMLArchive> > m_subframes; |
| 56 }; | 55 }; |
| 57 | 56 |
| 58 } | 57 } |
| 59 | 58 |
| 60 #endif | 59 #endif |
| OLD | NEW |