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

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

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 SharedBuffer& outputBuffer); 91 SharedBuffer& outputBuffer);
92 92
93 // Generates and returns a full MHTML document. 93 // Generates and returns a full MHTML document.
94 static PassRefPtr<SharedBuffer> generateMHTMLData( 94 static PassRefPtr<SharedBuffer> generateMHTMLData(
95 const Vector<SerializedResource>&, EncodingPolicy, 95 const Vector<SerializedResource>&, EncodingPolicy,
96 const String& title, const String& mimeType); 96 const String& title, const String& mimeType);
97 97
98 typedef WillBeHeapVector<RefPtrWillBeMember<ArchiveResource>> SubArchiveReso urces; 98 typedef WillBeHeapVector<RefPtrWillBeMember<ArchiveResource>> SubArchiveReso urces;
99 typedef WillBeHeapVector<RefPtrWillBeMember<MHTMLArchive>> SubFrameArchives; 99 typedef WillBeHeapVector<RefPtrWillBeMember<MHTMLArchive>> SubFrameArchives;
100 100
101 ArchiveResource* mainResource() { return m_mainResource.get(); } 101 ArchiveResource* mainResource() const;
102 const SubArchiveResources& subresources() const { return m_subresources; } 102 const SubArchiveResources& subresources() const { return m_subresources; }
103 const SubFrameArchives& subframeArchives() const { return m_subframeArchives ; } 103 const SubFrameArchives& subframeArchives() const { return m_subframeArchives ; }
104 104
105 DECLARE_TRACE(); 105 DECLARE_TRACE();
106 106
107 private: 107 private:
108 friend class MHTMLParser; 108 friend class MHTMLParser;
109 MHTMLArchive(); 109 MHTMLArchive();
110 110
111 void setMainResource(PassRefPtrWillBeRawPtr<ArchiveResource>); 111 void setMainResource(PassRefPtrWillBeRawPtr<ArchiveResource>);
112 void addSubresource(PassRefPtrWillBeRawPtr<ArchiveResource>); 112 void addSubresource(PassRefPtrWillBeRawPtr<ArchiveResource>);
113 void addSubframeArchive(PassRefPtrWillBeRawPtr<MHTMLArchive>); 113 void addSubframeArchive(PassRefPtrWillBeRawPtr<MHTMLArchive>);
114 114
115 #if !ENABLE(OILPAN) 115 #if !ENABLE(OILPAN)
116 void clearAllSubframeArchives(); 116 void clearAllSubframeArchives();
117 void clearAllSubframeArchivesImpl(SubFrameArchives* clearedArchives); 117 void clearAllSubframeArchivesImpl(SubFrameArchives* clearedArchives);
118 #endif 118 #endif
119 119
120 RefPtrWillBeMember<ArchiveResource> m_mainResource; 120 RefPtrWillBeMember<ArchiveResource> m_mainResource;
121 SubArchiveResources m_subresources; 121 SubArchiveResources m_subresources;
122 SubFrameArchives m_subframeArchives; 122 SubFrameArchives m_subframeArchives;
123 }; 123 };
124 124
125 } 125 }
126 126
127 #endif 127 #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