Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: Source/core/loader/archive/ArchiveResourceCollection.h

Issue 17569013: Remove unused includes from core/inspector, core/loader and core/page (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/loader/appcache/DOMApplicationCache.h ('k') | Source/core/loader/archive/MHTMLParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698