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

Unified Diff: Source/platform/mhtml/MHTMLParser.h

Issue 374053002: Oilpan: move MHTML objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make MHTMLArchive.h self-contained/closed. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/mhtml/MHTMLArchive.cpp ('k') | Source/platform/mhtml/MHTMLParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mhtml/MHTMLParser.h
diff --git a/Source/platform/mhtml/MHTMLParser.h b/Source/platform/mhtml/MHTMLParser.h
index b80ac4a8e05ce602307e11fa239f7c101889098e..c54ab557116e250c764ff16e6c48fcb89e1f0dca 100644
--- a/Source/platform/mhtml/MHTMLParser.h
+++ b/Source/platform/mhtml/MHTMLParser.h
@@ -32,6 +32,7 @@
#define MHTMLParser_h
#include "platform/SharedBufferChunkReader.h"
+#include "platform/heap/Handle.h"
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
@@ -46,11 +47,12 @@ class MHTMLArchive;
class MIMEHeader;
class SharedBuffer;
-class PLATFORM_EXPORT MHTMLParser {
+class PLATFORM_EXPORT MHTMLParser FINAL {
+ STACK_ALLOCATED();
public:
explicit MHTMLParser(SharedBuffer*);
- PassRefPtr<MHTMLArchive> parseArchive();
+ PassRefPtrWillBeRawPtr<MHTMLArchive> parseArchive();
size_t frameCount() const;
MHTMLArchive* frameAt(size_t) const;
@@ -59,17 +61,16 @@ public:
ArchiveResource* subResourceAt(size_t) const;
private:
- PassRefPtr<MHTMLArchive> parseArchiveWithHeader(MIMEHeader*);
- PassRefPtr<ArchiveResource> parseNextPart(const MIMEHeader&, const String& endOfPartBoundary, const String& endOfDocumentBoundary, bool& endOfArchiveReached);
+ PassRefPtrWillBeRawPtr<MHTMLArchive> parseArchiveWithHeader(MIMEHeader*);
+ PassRefPtrWillBeRawPtr<ArchiveResource> parseNextPart(const MIMEHeader&, const String& endOfPartBoundary, const String& endOfDocumentBoundary, bool& endOfArchiveReached);
void addResourceToArchive(ArchiveResource*, MHTMLArchive*);
SharedBufferChunkReader m_lineReader;
- Vector<RefPtr<ArchiveResource> > m_resources;
- Vector<RefPtr<MHTMLArchive> > m_frames;
+ WillBeHeapVector<RefPtrWillBeMember<ArchiveResource> > m_resources;
+ WillBeHeapVector<RefPtrWillBeMember<MHTMLArchive> > m_frames;
};
}
#endif
-
« no previous file with comments | « Source/platform/mhtml/MHTMLArchive.cpp ('k') | Source/platform/mhtml/MHTMLParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698