| Index: third_party/WebKit/public/web/WebPageSerializer.h
|
| diff --git a/third_party/WebKit/public/web/WebPageSerializer.h b/third_party/WebKit/public/web/WebPageSerializer.h
|
| index d5264caa051c4c5fb2d62aae11dbebfc16f98c17..632dd13bd854d28c50a2b7607d12dc7d5ac4d9bb 100644
|
| --- a/third_party/WebKit/public/web/WebPageSerializer.h
|
| +++ b/third_party/WebKit/public/web/WebPageSerializer.h
|
| @@ -66,6 +66,11 @@ public:
|
| BLINK_EXPORT static WebData generateMHTMLHeader(
|
| const WebString& boundary, WebLocalFrame* topLevelFrame);
|
|
|
| + // Enumerates and returns URLs of MHTML resources that would be generated
|
| + // for the given frame by generateMHTMLParts.
|
| + BLINK_EXPORT static WebVector<WebURL> enumerateMHTMLResources(
|
| + WebLocalFrame*);
|
| +
|
| // Generates and returns MHTML parts for the given frame and all the
|
| // savable resources underneath.
|
| //
|
| @@ -78,9 +83,13 @@ public:
|
| // See rfc2557 - section 8.3 - "Use of the Content-ID header and CID URLs".
|
| // Format note - |frameToContentID| should contain strings of the form
|
| // "<foo@bar.com>" (i.e. the strings should include the angle brackets).
|
| + //
|
| + // |resourcesToSkip| specifies which resources to skip (this skipping
|
| + // is not applied to the uri of the frame being serialized).
|
| BLINK_EXPORT static WebData generateMHTMLParts(
|
| const WebString& boundary, WebLocalFrame*, bool useBinaryEncoding,
|
| - const WebVector<std::pair<WebFrame*, WebString>>& frameToContentID);
|
| + const WebVector<std::pair<WebFrame*, WebString>>& frameToContentID,
|
| + const WebVector<WebURL>& resourcesToSkip);
|
|
|
| // Generates and returns an MHTML footer.
|
| //
|
|
|