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

Side by Side Diff: public/web/WebPageSerializer.h

Issue 1295063002: Revert "Remove old serializer" It caused a regression, crbug.com/510422 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/web.gypi ('k') | public/web/WebPageSerializerClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // The parameter localDirectoryName is relative path of directory which 90 // The parameter localDirectoryName is relative path of directory which
91 // contain all saved auxiliary files included all sub frames and resources. 91 // contain all saved auxiliary files included all sub frames and resources.
92 BLINK_EXPORT static bool serialize( 92 BLINK_EXPORT static bool serialize(
93 WebLocalFrame*, 93 WebLocalFrame*,
94 bool recursive, 94 bool recursive,
95 WebPageSerializerClient*, 95 WebPageSerializerClient*,
96 const WebVector<WebURL>& links, 96 const WebVector<WebURL>& links,
97 const WebVector<WebString>& localPaths, 97 const WebVector<WebString>& localPaths,
98 const WebString& localDirectoryName); 98 const WebString& localDirectoryName);
99 99
100 // Retrieve all the resource for the passed view, including the main frame
101 // and sub-frames. Returns true if all resources were retrieved
102 // successfully.
103 BLINK_EXPORT static bool retrieveAllResources(WebView*,
104 const WebVector<WebCString>& supportedSchemes,
105 WebVector<WebURL>* resources,
106 WebVector<WebURL>* frames);
107
100 // FIXME: The following are here for unit testing purposes. Consider 108 // FIXME: The following are here for unit testing purposes. Consider
101 // changing the unit tests instead. 109 // changing the unit tests instead.
102 110
103 // Generate the META for charset declaration. 111 // Generate the META for charset declaration.
104 BLINK_EXPORT static WebString generateMetaCharsetDeclaration(const WebString & charset); 112 BLINK_EXPORT static WebString generateMetaCharsetDeclaration(const WebString & charset);
105 // Generate the MOTW declaration. 113 // Generate the MOTW declaration.
106 BLINK_EXPORT static WebString generateMarkOfTheWebDeclaration(const WebURL&) ; 114 BLINK_EXPORT static WebString generateMarkOfTheWebDeclaration(const WebURL&) ;
107 // Generate the default base tag declaration. 115 // Generate the default base tag declaration.
108 BLINK_EXPORT static WebString generateBaseTagDeclaration(const WebString& ba seTarget); 116 BLINK_EXPORT static WebString generateBaseTagDeclaration(const WebString& ba seTarget);
109 }; 117 };
110 118
111 } // namespace blink 119 } // namespace blink
112 120
113 #endif 121 #endif
OLDNEW
« no previous file with comments | « Source/web/web.gypi ('k') | public/web/WebPageSerializerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698