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

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

Issue 2842653002: [Offline Pages] Generate MHTML header in the browser process. (Closed)
Patch Set: Update format string for gcc error. Created 3 years, 8 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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // should return null WebString if the frame doesn't have a content-id. 63 // should return null WebString if the frame doesn't have a content-id.
64 virtual WebString GetContentID(WebFrame*) = 0; 64 virtual WebString GetContentID(WebFrame*) = 0;
65 65
66 virtual WebFrameSerializerCacheControlPolicy CacheControlPolicy() = 0; 66 virtual WebFrameSerializerCacheControlPolicy CacheControlPolicy() = 0;
67 67
68 virtual bool UseBinaryEncoding() = 0; 68 virtual bool UseBinaryEncoding() = 0;
69 69
70 virtual bool RemovePopupOverlay() = 0; 70 virtual bool RemovePopupOverlay() = 0;
71 }; 71 };
72 72
73 // Generates and returns an MHTML header.
74 //
75 // Contents of the header (i.e. title and mime type) will be based
76 // on the frame passed as an argument (which typically should be
77 // the main, top-level frame).
78 //
79 // Same |boundary| needs to used for all generateMHTMLHeader and
80 // generateMHTMLParts and generateMHTMLFooter calls that belong to the same
81 // MHTML document (see also rfc1341, section 7.2.1, "boundary" description).
82 BLINK_EXPORT static WebThreadSafeData GenerateMHTMLHeader(
83 const WebString& boundary,
84 WebLocalFrame*,
85 MHTMLPartsGenerationDelegate*);
86
87 // Generates and returns MHTML parts for the given frame and the 73 // Generates and returns MHTML parts for the given frame and the
88 // savable resources underneath. 74 // savable resources underneath.
89 // 75 //
90 // Same |boundary| needs to used for all generateMHTMLHeader and 76 // Same |boundary| needs to used for all generateMHTMLParts calls that belong
91 // generateMHTMLParts and generateMHTMLFooter calls that belong to the same 77 // to the same MHTML document (see also rfc1341, section 7.2.1, "boundary"
92 // MHTML document (see also rfc1341, section 7.2.1, "boundary" description). 78 // description).
93 BLINK_EXPORT static WebThreadSafeData GenerateMHTMLParts( 79 BLINK_EXPORT static WebThreadSafeData GenerateMHTMLParts(
94 const WebString& boundary, 80 const WebString& boundary,
95 WebLocalFrame*, 81 WebLocalFrame*,
96 MHTMLPartsGenerationDelegate*); 82 MHTMLPartsGenerationDelegate*);
97 83
98 // IMPORTANT: 84 // IMPORTANT:
99 // The API below is an older implementation of frame serialization that 85 // The API below is an older implementation of frame serialization that
100 // will be removed soon. 86 // will be removed soon.
101 87
102 class LinkRewritingDelegate { 88 class LinkRewritingDelegate {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Generate the MOTW declaration. 129 // Generate the MOTW declaration.
144 BLINK_EXPORT static WebString GenerateMarkOfTheWebDeclaration(const WebURL&); 130 BLINK_EXPORT static WebString GenerateMarkOfTheWebDeclaration(const WebURL&);
145 // Generate the default base tag declaration. 131 // Generate the default base tag declaration.
146 BLINK_EXPORT static WebString GenerateBaseTagDeclaration( 132 BLINK_EXPORT static WebString GenerateBaseTagDeclaration(
147 const WebString& base_target); 133 const WebString& base_target);
148 }; 134 };
149 135
150 } // namespace blink 136 } // namespace blink
151 137
152 #endif 138 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698