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

Unified Diff: trunk/public/web/WebPageSerializer.h

Issue 73673003: Revert 162155 "This review merges the two existing page serializ..." (Closed) Base URL: svn://svn.chromium.org/blink/
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
« no previous file with comments | « trunk/Source/web/web.gypi ('k') | trunk/public/web/WebPageSerializerClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/public/web/WebPageSerializer.h
===================================================================
--- trunk/public/web/WebPageSerializer.h (revision 162155)
+++ trunk/public/web/WebPageSerializer.h (working copy)
@@ -89,11 +89,29 @@
// 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);
+ bool recursive,
+ 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);
};
} // namespace blink
Property changes on: trunk/public/web/WebPageSerializer.h
___________________________________________________________________
Modified: svn:eol-style
- LF
+ native
« no previous file with comments | « trunk/Source/web/web.gypi ('k') | trunk/public/web/WebPageSerializerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698