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 21 matching lines...) Expand all Loading... |
32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
33 #include "wtf/HashMap.h" | 33 #include "wtf/HashMap.h" |
34 #include "wtf/text/WTFString.h" | 34 #include "wtf/text/WTFString.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class ArchiveResource; | 38 class ArchiveResource; |
39 class KURL; | 39 class KURL; |
40 class MHTMLArchive; | 40 class MHTMLArchive; |
41 | 41 |
42 class PLATFORM_EXPORT ArchiveResourceCollection FINAL : public NoBaseWillBeGarba
geCollectedFinalized<ArchiveResourceCollection> { | 42 class PLATFORM_EXPORT ArchiveResourceCollection final : public NoBaseWillBeGarba
geCollectedFinalized<ArchiveResourceCollection> { |
43 WTF_MAKE_NONCOPYABLE(ArchiveResourceCollection); WTF_MAKE_FAST_ALLOCATED_WIL
L_BE_REMOVED; | 43 WTF_MAKE_NONCOPYABLE(ArchiveResourceCollection); WTF_MAKE_FAST_ALLOCATED_WIL
L_BE_REMOVED; |
44 public: | 44 public: |
45 static PassOwnPtrWillBeRawPtr<ArchiveResourceCollection> create() | 45 static PassOwnPtrWillBeRawPtr<ArchiveResourceCollection> create() |
46 { | 46 { |
47 return adoptPtrWillBeNoop(new ArchiveResourceCollection); | 47 return adoptPtrWillBeNoop(new ArchiveResourceCollection); |
48 } | 48 } |
49 | 49 |
50 ~ArchiveResourceCollection(); | 50 ~ArchiveResourceCollection(); |
51 | 51 |
52 void addResource(PassRefPtrWillBeRawPtr<ArchiveResource>); | 52 void addResource(PassRefPtrWillBeRawPtr<ArchiveResource>); |
53 void addAllResources(MHTMLArchive*); | 53 void addAllResources(MHTMLArchive*); |
54 | 54 |
55 ArchiveResource* archiveResourceForURL(const KURL&); | 55 ArchiveResource* archiveResourceForURL(const KURL&); |
56 PassRefPtrWillBeRawPtr<MHTMLArchive> popSubframeArchive(const String& frameN
ame, const KURL&); | 56 PassRefPtrWillBeRawPtr<MHTMLArchive> popSubframeArchive(const String& frameN
ame, const KURL&); |
57 | 57 |
58 void trace(Visitor*); | 58 void trace(Visitor*); |
59 | 59 |
60 private: | 60 private: |
61 ArchiveResourceCollection(); | 61 ArchiveResourceCollection(); |
62 | 62 |
63 WillBeHeapHashMap<String, RefPtrWillBeMember<ArchiveResource> > m_subresourc
es; | 63 WillBeHeapHashMap<String, RefPtrWillBeMember<ArchiveResource> > m_subresourc
es; |
64 WillBeHeapHashMap<String, RefPtrWillBeMember<MHTMLArchive> > m_subframes; | 64 WillBeHeapHashMap<String, RefPtrWillBeMember<MHTMLArchive> > m_subframes; |
65 }; | 65 }; |
66 | 66 |
67 } | 67 } |
68 | 68 |
69 #endif | 69 #endif |
OLD | NEW |