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

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

Issue 858663002: Fix template angle bracket syntax in platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 11 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
« no previous file with comments | « Source/platform/mhtml/ArchiveResourceCollection.h ('k') | Source/platform/mhtml/MHTMLParser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 ~MHTMLArchive(); 53 ~MHTMLArchive();
54 54
55 enum EncodingPolicy { 55 enum EncodingPolicy {
56 UseDefaultEncoding, 56 UseDefaultEncoding,
57 UseBinaryEncoding 57 UseBinaryEncoding
58 }; 58 };
59 59
60 // Binary encoding results in smaller MHTML files but they might not work in other browsers. 60 // Binary encoding results in smaller MHTML files but they might not work in other browsers.
61 static PassRefPtr<SharedBuffer> generateMHTMLData(const Vector<SerializedRes ource>&, EncodingPolicy, const String& title, const String& mimeType); 61 static PassRefPtr<SharedBuffer> generateMHTMLData(const Vector<SerializedRes ource>&, EncodingPolicy, const String& title, const String& mimeType);
62 62
63 typedef WillBeHeapVector<RefPtrWillBeMember<ArchiveResource> > SubArchiveRes ources; 63 typedef WillBeHeapVector<RefPtrWillBeMember<ArchiveResource>> SubArchiveReso urces;
64 typedef WillBeHeapVector<RefPtrWillBeMember<MHTMLArchive> > SubFrameArchives ; 64 typedef WillBeHeapVector<RefPtrWillBeMember<MHTMLArchive>> SubFrameArchives;
65 65
66 ArchiveResource* mainResource() { return m_mainResource.get(); } 66 ArchiveResource* mainResource() { return m_mainResource.get(); }
67 const SubArchiveResources& subresources() const { return m_subresources; } 67 const SubArchiveResources& subresources() const { return m_subresources; }
68 const SubFrameArchives& subframeArchives() const { return m_subframeArchives ; } 68 const SubFrameArchives& subframeArchives() const { return m_subframeArchives ; }
69 69
70 void trace(Visitor*); 70 void trace(Visitor*);
71 71
72 private: 72 private:
73 friend class MHTMLParser; 73 friend class MHTMLParser;
74 MHTMLArchive(); 74 MHTMLArchive();
75 75
76 void setMainResource(PassRefPtrWillBeRawPtr<ArchiveResource>); 76 void setMainResource(PassRefPtrWillBeRawPtr<ArchiveResource>);
77 void addSubresource(PassRefPtrWillBeRawPtr<ArchiveResource>); 77 void addSubresource(PassRefPtrWillBeRawPtr<ArchiveResource>);
78 void addSubframeArchive(PassRefPtrWillBeRawPtr<MHTMLArchive>); 78 void addSubframeArchive(PassRefPtrWillBeRawPtr<MHTMLArchive>);
79 79
80 #if !ENABLE(OILPAN) 80 #if !ENABLE(OILPAN)
81 void clearAllSubframeArchives(); 81 void clearAllSubframeArchives();
82 void clearAllSubframeArchivesImpl(SubFrameArchives* clearedArchives); 82 void clearAllSubframeArchivesImpl(SubFrameArchives* clearedArchives);
83 #endif 83 #endif
84 84
85 RefPtrWillBeMember<ArchiveResource> m_mainResource; 85 RefPtrWillBeMember<ArchiveResource> m_mainResource;
86 SubArchiveResources m_subresources; 86 SubArchiveResources m_subresources;
87 SubFrameArchives m_subframeArchives; 87 SubFrameArchives m_subframeArchives;
88 }; 88 };
89 89
90 } 90 }
91 91
92 #endif 92 #endif
OLDNEW
« no previous file with comments | « Source/platform/mhtml/ArchiveResourceCollection.h ('k') | Source/platform/mhtml/MHTMLParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698