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

Unified Diff: public/web/WebPageSerializer.h

Issue 68613003: Merges the two different page serializers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: public/web/WebPageSerializer.h
diff --git a/public/web/WebPageSerializer.h b/public/web/WebPageSerializer.h
index 89a3a31b83245a88390178b016afbda40b019154..63bc6309741da508011cefdcb124b20a78141b99 100644
--- a/public/web/WebPageSerializer.h
+++ b/public/web/WebPageSerializer.h
@@ -88,30 +88,17 @@ public:
// saved links, which matched with vector:links one by one.
// The parameter localDirectoryName is relative path of directory which
// contain all saved auxiliary files included all sub frames and resources.
- BLINK_EXPORT static bool serialize(WebFrame*,
- bool recursive,
- WebPageSerializerClient*,
- const WebVector<WebURL>& links,
- const WebVector<WebString>& localPaths,
- const WebString& localDirectoryName);
+ BLINK_EXPORT static bool serialize(WebView*,
+ WebPageSerializerClient*, const WebVector<WebURL>& links,
+ const WebVector<WebString>& localPaths,
+ const WebString& localDirectoryName);
// Retrieve all the resource for the passed view, including the main frame
// and sub-frames. Returns true if all resources were retrieved
// successfully.
BLINK_EXPORT static bool retrieveAllResources(WebView*,
- const WebVector<WebCString>& supportedSchemes,
- WebVector<WebURL>* resources,
- WebVector<WebURL>* frames);
-
- // FIXME: The following are here for unit testing purposes. Consider
- // changing the unit tests instead.
-
- // Generate the META for charset declaration.
- BLINK_EXPORT static WebString generateMetaCharsetDeclaration(const WebString& charset);
- // Generate the MOTW declaration.
- BLINK_EXPORT static WebString generateMarkOfTheWebDeclaration(const WebURL&);
- // Generate the default base tag declaration.
- BLINK_EXPORT static WebString generateBaseTagDeclaration(const WebString& baseTarget);
+ const WebVector<WebCString>& supportedSchemes,
+ WebVector<WebURL>* resources, WebVector<WebURL>* frames);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698