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

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

Issue 1441553002: Generating CIDs in Blink during MHTML serialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mhtml-per-frame-page-serializer-only
Patch Set: Replace list Replaced initializer lists with array initialization. Created 5 years 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 static void generateMHTMLHeader( 70 static void generateMHTMLHeader(
71 const String& boundary, const String& title, const String& mimeType, 71 const String& boundary, const String& title, const String& mimeType,
72 SharedBuffer& outputBuffer); 72 SharedBuffer& outputBuffer);
73 73
74 // Serializes SerializedResource as an MHTML part and appends it in 74 // Serializes SerializedResource as an MHTML part and appends it in
75 // |outputBuffer|. 75 // |outputBuffer|.
76 // 76 //
77 // Same |boundary| needs to used for all generateMHTMLHeader and 77 // Same |boundary| needs to used for all generateMHTMLHeader and
78 // generateMHTMLPart and generateMHTMLFooter calls that belong to the same 78 // generateMHTMLPart and generateMHTMLFooter calls that belong to the same
79 // MHTML document (see also generateMHTMLBoundary method). 79 // MHTML document (see also generateMHTMLBoundary method).
80 //
81 // If |contentID| is non-empty, then it will be used as a Content-ID header.
82 // See rfc2557 - section 8.3 - "Use of the Content-ID header and CID URLs".
80 static void generateMHTMLPart( 83 static void generateMHTMLPart(
81 const String& boundary, EncodingPolicy, const SerializedResource&, 84 const String& boundary, const String& contentID,
85 EncodingPolicy, const SerializedResource&,
82 SharedBuffer& outputBuffer); 86 SharedBuffer& outputBuffer);
83 87
84 // Generates an MHTML footer and appends it to |outputBuffer|. 88 // Generates an MHTML footer and appends it to |outputBuffer|.
85 // 89 //
86 // Same |boundary| needs to used for all generateMHTMLHeader and 90 // Same |boundary| needs to used for all generateMHTMLHeader and
87 // generateMHTMLPart and generateMHTMLFooter calls that belong to the same 91 // generateMHTMLPart and generateMHTMLFooter calls that belong to the same
88 // MHTML document (see also generateMHTMLBoundary method). 92 // MHTML document (see also generateMHTMLBoundary method).
89 static void generateMHTMLFooter( 93 static void generateMHTMLFooter(
90 const String& boundary, 94 const String& boundary,
91 SharedBuffer& outputBuffer); 95 SharedBuffer& outputBuffer);
(...skipping 21 matching lines...) Expand all
113 #endif 117 #endif
114 118
115 RefPtrWillBeMember<ArchiveResource> m_mainResource; 119 RefPtrWillBeMember<ArchiveResource> m_mainResource;
116 SubArchiveResources m_subresources; 120 SubArchiveResources m_subresources;
117 SubFrameArchives m_subframeArchives; 121 SubFrameArchives m_subframeArchives;
118 }; 122 };
119 123
120 } 124 }
121 125
122 #endif 126 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698