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

Unified Diff: third_party/WebKit/public/web/WebFrameSerializer.h

Issue 1541463002: Rename [Web]PageSerializer[Test|Client|Impl] to ...FrameSerializer... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mhtml-deduplication-of-resources
Patch Set: Rebasing... Created 5 years 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: third_party/WebKit/public/web/WebFrameSerializer.h
diff --git a/third_party/WebKit/public/web/WebPageSerializer.h b/third_party/WebKit/public/web/WebFrameSerializer.h
similarity index 92%
rename from third_party/WebKit/public/web/WebPageSerializer.h
rename to third_party/WebKit/public/web/WebFrameSerializer.h
index 44d5f94fb12b387a63a990f8500f02f9b824083c..051ed08443a5eb84fe8ae589a54cba7b41842300 100644
--- a/third_party/WebKit/public/web/WebPageSerializer.h
+++ b/third_party/WebKit/public/web/WebFrameSerializer.h
@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebPageSerializer_h
-#define WebPageSerializer_h
+#ifndef WebFrameSerializer_h
+#define WebFrameSerializer_h
#include "../platform/WebCString.h"
#include "../platform/WebCommon.h"
@@ -42,14 +42,13 @@
namespace blink {
-class WebPageSerializerClient;
+class WebFrameSerializerClient;
class WebFrame;
class WebLocalFrame;
template <typename T> class WebVector;
// Serialization of frame contents into html or mhtml.
-// TODO(lukasza): Rename this class to WebFrameSerializer?
-class WebPageSerializer {
+class WebFrameSerializer {
public:
// Generates and returns an MHTML header.
//
@@ -95,25 +94,25 @@ public:
BLINK_EXPORT static WebData generateMHTMLFooter(const WebString& boundary);
// IMPORTANT:
- // The API below is an older implementation of a pageserialization that
+ // The API below is an older implementation of frame serialization that
// will be removed soon.
// 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 WebPageSerializerClient once the data buffer is full.
+ // sequentially call WebFrameSerializerClient 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).
//
// The parameter frame specifies which frame need to be serialized.
// The parameter client specifies the pointer of interface
- // WebPageSerializerClient providing a sink interface to receive the
+ // WebFrameSerializerClient providing a sink interface to receive the
// individual chunks of data to be saved.
// The parameter urlsToLocalPaths contains a mapping between original URLs
// of saved resources and corresponding local file paths.
BLINK_EXPORT static bool serialize(
WebLocalFrame*,
- WebPageSerializerClient*,
+ WebFrameSerializerClient*,
const WebVector<std::pair<WebURL, WebString>>& urlsToLocalPaths);
// FIXME: The following are here for unit testing purposes. Consider
« no previous file with comments | « third_party/WebKit/public/blink_headers.gypi ('k') | third_party/WebKit/public/web/WebFrameSerializerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698