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

Side by Side Diff: third_party/WebKit/public/web/WebFrameSerializer.h

Issue 2731293004: Move the writing of the MHTML footer to the browser process. (Closed)
Patch Set: More minor changes Created 3 years, 9 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 | « third_party/WebKit/Source/web/tests/MHTMLTest.cpp ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // savable resources underneath. 88 // savable resources underneath.
89 // 89 //
90 // Same |boundary| needs to used for all generateMHTMLHeader and 90 // Same |boundary| needs to used for all generateMHTMLHeader and
91 // generateMHTMLParts and generateMHTMLFooter calls that belong to the same 91 // generateMHTMLParts and generateMHTMLFooter calls that belong to the same
92 // MHTML document (see also rfc1341, section 7.2.1, "boundary" description). 92 // MHTML document (see also rfc1341, section 7.2.1, "boundary" description).
93 BLINK_EXPORT static WebThreadSafeData generateMHTMLParts( 93 BLINK_EXPORT static WebThreadSafeData generateMHTMLParts(
94 const WebString& boundary, 94 const WebString& boundary,
95 WebLocalFrame*, 95 WebLocalFrame*,
96 MHTMLPartsGenerationDelegate*); 96 MHTMLPartsGenerationDelegate*);
97 97
98 // Generates and returns an MHTML footer.
99 //
100 // Same |boundary| needs to used for all generateMHTMLHeader and
101 // generateMHTMLParts and generateMHTMLFooter calls that belong to the same
102 // MHTML document (see also rfc1341, section 7.2.1, "boundary" description).
103 BLINK_EXPORT static WebThreadSafeData generateMHTMLFooter(
104 const WebString& boundary);
105
106 // IMPORTANT: 98 // IMPORTANT:
107 // The API below is an older implementation of frame serialization that 99 // The API below is an older implementation of frame serialization that
108 // will be removed soon. 100 // will be removed soon.
109 101
110 class LinkRewritingDelegate { 102 class LinkRewritingDelegate {
111 public: 103 public:
112 // Method allowing the delegate control which URLs are written into the 104 // Method allowing the delegate control which URLs are written into the
113 // generated html document. 105 // generated html document.
114 // 106 //
115 // When URL of the given frame needs to be rewritten, this method should 107 // When URL of the given frame needs to be rewritten, this method should
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Generate the MOTW declaration. 143 // Generate the MOTW declaration.
152 BLINK_EXPORT static WebString generateMarkOfTheWebDeclaration(const WebURL&); 144 BLINK_EXPORT static WebString generateMarkOfTheWebDeclaration(const WebURL&);
153 // Generate the default base tag declaration. 145 // Generate the default base tag declaration.
154 BLINK_EXPORT static WebString generateBaseTagDeclaration( 146 BLINK_EXPORT static WebString generateBaseTagDeclaration(
155 const WebString& baseTarget); 147 const WebString& baseTarget);
156 }; 148 };
157 149
158 } // namespace blink 150 } // namespace blink
159 151
160 #endif 152 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/MHTMLTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698