| 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 7a59b6a82effd69af7bdc65276308c23c32360ba..59052f9ad45503cd7439beaa00f95ebeb40f73df 100644
|
| --- a/third_party/WebKit/public/web/WebPageSerializer.h
|
| +++ b/third_party/WebKit/public/web/WebPageSerializer.h
|
| @@ -63,6 +63,11 @@ public:
|
| BLINK_EXPORT static WebData generateMHTMLHeader(
|
| const WebString& boundary, WebLocalFrame*);
|
|
|
| + // 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.
|
| //
|
| @@ -75,9 +80,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.
|
| //
|
| @@ -92,7 +101,7 @@ public:
|
|
|
| // This function will serialize the specified frame to HTML data.
|
| // We have a data buffer to temporary saving generated html data. We will
|
| - // sequentially call WebPageSeriazlierClient once the data buffer is full.
|
| + // sequentially call WebPageSerializerClient once the data buffer is full.
|
| //
|
| // Return false means if no data has been serialized (i.e. because
|
| // the target frame didn't have a valid url).
|
|
|