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

Issue 1541463002: Rename [Web]PageSerializer[Test|Client|Impl] to ...FrameSerializer... (Closed)

Created:
5 years ago by Łukasz Anforowicz
Modified:
4 years, 11 months ago
Reviewers:
dcheng, nasko
CC:
dcheng, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, jshin+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, nasko+codewatch_chromium.org, tfarina, yosin_UTC9
Base URL:
https://chromium.googlesource.com/chromium/src.git@mhtml-deduplication-of-resources
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename [Web]PageSerializer[Test|Client|Impl] to ...FrameSerializer... After refactoring needed to support OOPIFs in save-page-as feature, the html serializers in blink serialize frames, not pages and therefore their old names (WebPageSerializer, PageSerializer, etc) do not apply anymore. Therefore this CL renames PageSerializer to FrameSerializer where applicable. Note that this rename not only covers PageSerializer class, but also WebPageSerializer, WebPageSerializerClient, PageSerializerTest, test data files, etc. Note that FrameSerializer is more correct than HtmlSerializer, because - FrameSerializer also serializes subresources (i.e. images) - Even though WebFrameSerializerImpl deals only with HTML documents, for now it might make sense to leave it named as WebFrameSerializerImpl: - it still takes a Frame as input - it implements part of the public WebFrameSerializer class (and therefore it is desirable to have a similar name here as well) BUG=538766, 526786 Committed: https://crrev.com/902fcc5c3732cf387828f7e0c10a810e5bf85714 Cr-Commit-Position: refs/heads/master@{#367227}

Patch Set 1 #

Patch Set 2 : Rebasing... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -3165 lines) Patch
M build/android/pylib/gtest/filter/webkit_unit_tests_disabled View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/mhtml_generation_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/frame_messages.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/dom_serializer_browsertest.cc View 1 11 chunks +14 lines, -14 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 3 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 9 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 chunks +2 lines, -1 line 0 comments Download
A + third_party/WebKit/Source/core/frame/FrameSerializer.h View 1 5 chunks +6 lines, -8 lines 0 comments Download
A + third_party/WebKit/Source/core/frame/FrameSerializer.cpp View 1 15 chunks +16 lines, -17 lines 0 comments Download
D third_party/WebKit/Source/core/page/PageSerializer.h View 1 1 chunk +0 lines, -138 lines 0 comments Download
D third_party/WebKit/Source/core/page/PageSerializer.cpp View 1 1 chunk +0 lines, -489 lines 0 comments Download
A + third_party/WebKit/Source/web/WebFrameSerializer.cpp View 1 10 chunks +28 lines, -28 lines 0 comments Download
A + third_party/WebKit/Source/web/WebFrameSerializerImpl.h View 7 chunks +52 lines, -37 lines 0 comments Download
A + third_party/WebKit/Source/web/WebFrameSerializerImpl.cpp View 1 17 chunks +42 lines, -37 lines 0 comments Download
D third_party/WebKit/Source/web/WebPageSerializer.cpp View 1 1 chunk +0 lines, -231 lines 0 comments Download
D third_party/WebKit/Source/web/WebPageSerializerImpl.h View 1 chunk +0 lines, -173 lines 0 comments Download
D third_party/WebKit/Source/web/WebPageSerializerImpl.cpp View 1 1 chunk +0 lines, -467 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp View 1 22 chunks +47 lines, -48 lines 0 comments Download
D third_party/WebKit/Source/web/tests/PageSerializerTest.cpp View 1 1 chunk +0 lines, -534 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp View 1 8 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/Source/web/tests/WebPageSerializerTest.cpp View 1 1 chunk +0 lines, -138 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserialization/awesome.png View Binary file 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserialization/beautifull.css View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserialization/embed_iframe.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/frameserialization/encoding_normalization.html View 1 chunk +6 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserialization/object_iframe.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserialization/simple_iframe.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserialization/simple_page.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserialization/text_only_page.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserialization/top_frame.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserialization/url_attribute_values.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/css/css_test_page.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/css/encoding.css View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/css/image.png View Binary file 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/css/import.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/css/import/absolute/green-header.css View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/css/import/base.css View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/css/import/relative/red-background.css View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/css/import_style_from_link.css View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/css/import_styles.css View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/css/link_styles.css View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/datauri/page_with_data.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/datauri/page_with_morphing_data.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/dtd/html5.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/elements/elements.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/elements/empty.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/elements/image.png View Binary file 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/elements/style.css View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/font/font.html View 2 chunks +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/font/font.ttf View Binary file 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/frames/blank_frames.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/frames/embed_iframe.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/frames/encoded_iframe.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/frames/image.png View Binary file 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/frames/object_iframe.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/frames/simple_frames.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/frames/simple_frames_1.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/frames/simple_frames_3.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/frames/simple_frames_top.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/frames/simple_iframe.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/frames/top_frame.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/image/error_image.png View Binary file 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/image/page_with_img_error.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/namespace/namespace_element.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/rewritelinks/image.png View Binary file 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/rewritelinks/rewritelinks_simple.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/svg/green_rectangle.svg View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/svg/page_with_svg_image.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/web/tests/data/frameserializer/xml/xmldecl.xml View 0 chunks +-1 lines, --1 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserialization/awesome.png View Binary file 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserialization/beautifull.css View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserialization/embed_iframe.html View 1 chunk +0 lines, -5 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserialization/encoding_normalization.html View 1 chunk +0 lines, -6 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserialization/object_iframe.html View 1 chunk +0 lines, -5 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserialization/simple_iframe.html View 1 chunk +0 lines, -14 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserialization/simple_page.html View 1 chunk +0 lines, -50 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserialization/text_only_page.html View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserialization/top_frame.html View 1 chunk +0 lines, -28 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserialization/url_attribute_values.html View 1 chunk +0 lines, -4 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/css/css_test_page.html View 1 chunk +0 lines, -147 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/css/encoding.css View 1 chunk +0 lines, -2 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/css/image.png View Binary file 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/css/import.html View 1 chunk +0 lines, -7 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/css/import/absolute/green-header.css View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/css/import/base.css View 1 chunk +0 lines, -2 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/css/import/relative/red-background.css View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/css/import_style_from_link.css View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/css/import_styles.css View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/css/link_styles.css View 1 chunk +0 lines, -5 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/datauri/page_with_data.html View 1 chunk +0 lines, -10 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/datauri/page_with_morphing_data.html View 1 chunk +0 lines, -9 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/dtd/html5.html View 1 chunk +0 lines, -10 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/elements/elements.html View 1 chunk +0 lines, -45 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/elements/empty.txt View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/elements/image.png View Binary file 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/elements/style.css View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/font/font.html View 1 chunk +0 lines, -21 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/font/font.ttf View Binary file 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/frames/blank_frames.html View 1 chunk +0 lines, -36 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/frames/embed_iframe.html View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/frames/encoded_iframe.html View 1 chunk +0 lines, -4 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/frames/image.png View Binary file 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/frames/object_iframe.html View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/frames/simple_frames.html View 1 chunk +0 lines, -14 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/frames/simple_frames_1.html View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/frames/simple_frames_3.html View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/frames/simple_frames_top.html View 1 chunk +0 lines, -7 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/frames/simple_iframe.html View 1 chunk +0 lines, -5 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/frames/top_frame.html View 1 chunk +0 lines, -24 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/image/error_image.png View Binary file 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/image/page_with_img_error.html View 1 chunk +0 lines, -12 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/namespace/namespace_element.html View 1 chunk +0 lines, -14 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/rewritelinks/image.png View Binary file 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/rewritelinks/rewritelinks_simple.html View 1 chunk +0 lines, -9 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/svg/green_rectangle.svg View 1 chunk +0 lines, -11 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/svg/page_with_svg_image.html View 1 chunk +0 lines, -9 lines 0 comments Download
D third_party/WebKit/Source/web/tests/data/pageserializer/xml/xmldecl.xml View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 2 chunks +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/public/web/WebFrameSerializer.h View 1 3 chunks +8 lines, -9 lines 0 comments Download
A + third_party/WebKit/public/web/WebFrameSerializerClient.h View 4 chunks +11 lines, -9 lines 0 comments Download
D third_party/WebKit/public/web/WebPageSerializer.h View 1 1 chunk +0 lines, -132 lines 0 comments Download
D third_party/WebKit/public/web/WebPageSerializerClient.h View 1 chunk +0 lines, -70 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
Łukasz Anforowicz
Daniel, could you please take a look?
4 years, 11 months ago (2015-12-31 01:04:50 UTC) #5
Łukasz Anforowicz
+yosin@ as FYI
4 years, 11 months ago (2015-12-31 01:06:38 UTC) #7
dcheng
lgtm
4 years, 11 months ago (2015-12-31 01:12:39 UTC) #8
Łukasz Anforowicz
nasko@, could you please take a look at: content/browser/download/mhtml_generation_manager.cc content/renderer/dom_serializer_browsertest.cc content/renderer/render_frame_impl.cc content/renderer/render_frame_impl.h
4 years, 11 months ago (2015-12-31 01:20:51 UTC) #9
nasko
Rubberstamp LGTM.
4 years, 11 months ago (2015-12-31 01:23:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1541463002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1541463002/20001
4 years, 11 months ago (2015-12-31 03:30:23 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2015-12-31 04:45:41 UTC) #14
commit-bot: I haz the power
4 years, 11 months ago (2015-12-31 04:46:43 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/902fcc5c3732cf387828f7e0c10a810e5bf85714
Cr-Commit-Position: refs/heads/master@{#367227}

Powered by Google App Engine
This is Rietveld 408576698