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

Side by Side Diff: third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h

Issue 1461193003: Revert of [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make patch applicable Created 5 years, 1 month 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Same |boundary| needs to used for all generateMHTMLHeader and 86 // Same |boundary| needs to used for all generateMHTMLHeader and
87 // generateMHTMLPart and generateMHTMLFooter calls that belong to the same 87 // generateMHTMLPart and generateMHTMLFooter calls that belong to the same
88 // MHTML document (see also generateMHTMLBoundary method). 88 // MHTML document (see also generateMHTMLBoundary method).
89 static void generateMHTMLFooter( 89 static void generateMHTMLFooter(
90 const String& boundary, 90 const String& boundary,
91 SharedBuffer& outputBuffer); 91 SharedBuffer& outputBuffer);
92 92
93 typedef WillBeHeapVector<RefPtrWillBeMember<ArchiveResource>> SubArchiveReso urces; 93 typedef WillBeHeapVector<RefPtrWillBeMember<ArchiveResource>> SubArchiveReso urces;
94 typedef WillBeHeapVector<RefPtrWillBeMember<MHTMLArchive>> SubFrameArchives; 94 typedef WillBeHeapVector<RefPtrWillBeMember<MHTMLArchive>> SubFrameArchives;
95 95
96 ArchiveResource* mainResource() const; 96 ArchiveResource* mainResource() { return m_mainResource.get(); }
97 const SubArchiveResources& subresources() const { return m_subresources; } 97 const SubArchiveResources& subresources() const { return m_subresources; }
98 const SubFrameArchives& subframeArchives() const { return m_subframeArchives ; } 98 const SubFrameArchives& subframeArchives() const { return m_subframeArchives ; }
99 99
100 DECLARE_TRACE(); 100 DECLARE_TRACE();
101 101
102 private: 102 private:
103 friend class MHTMLParser; 103 friend class MHTMLParser;
104 MHTMLArchive(); 104 MHTMLArchive();
105 105
106 void setMainResource(PassRefPtrWillBeRawPtr<ArchiveResource>); 106 void setMainResource(PassRefPtrWillBeRawPtr<ArchiveResource>);
107 void addSubresource(PassRefPtrWillBeRawPtr<ArchiveResource>); 107 void addSubresource(PassRefPtrWillBeRawPtr<ArchiveResource>);
108 void addSubframeArchive(PassRefPtrWillBeRawPtr<MHTMLArchive>); 108 void addSubframeArchive(PassRefPtrWillBeRawPtr<MHTMLArchive>);
109 109
110 #if !ENABLE(OILPAN) 110 #if !ENABLE(OILPAN)
111 void clearAllSubframeArchives(); 111 void clearAllSubframeArchives();
112 void clearAllSubframeArchivesImpl(SubFrameArchives* clearedArchives); 112 void clearAllSubframeArchivesImpl(SubFrameArchives* clearedArchives);
113 #endif 113 #endif
114 114
115 RefPtrWillBeMember<ArchiveResource> m_mainResource; 115 RefPtrWillBeMember<ArchiveResource> m_mainResource;
116 SubArchiveResources m_subresources; 116 SubArchiveResources m_subresources;
117 SubFrameArchives m_subframeArchives; 117 SubFrameArchives m_subframeArchives;
118 }; 118 };
119 119
120 } 120 }
121 121
122 #endif 122 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Handle.h ('k') | third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698