|
|
Chromium Code Reviews|
Created:
4 years, 1 month ago by Takashi Toyoshima Modified:
4 years ago CC:
chromium-reviews, tyoshino+watch_chromium.org, Yoav Weiss, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionLoading: remove dependencies from ResourceFetcher to ImageResource
To move ImageResource out of core/fetch, remove unexpected dependencies
from ResourceFetcher to ImageResource.
BUG=655920
Committed: https://crrev.com/31d4e7d45fb313e90ff623b769cf5e06265db7ce
Cr-Commit-Position: refs/heads/master@{#438156}
Patch Set 1 #Patch Set 2 : . #
Total comments: 5
Patch Set 3 : . #Patch Set 4 : rebased #
Total comments: 2
Patch Set 5 : rebase + review #11 #Patch Set 6 : rebase ResourceFetcher.cpp #
Dependent Patchsets: Messages
Total messages: 32 (16 generated)
Description was changed from ========== Loading: remove dependencies from ResourceFetcher to ImageResource To move ImageResource out of core/fetch, remove unexpected dependencies from ResourceFetcher to ImageResource. BUG=655920 ========== to ========== Loading: remove dependencies from ResourceFetcher to ImageResource To move ImageResource out of core/fetch, remove unexpected dependencies from ResourceFetcher to ImageResource. BUG=655920 ==========
toyoshim@chromium.org changed reviewers: + hiroshige@chromium.org, yhirano@chromium.org
PTAL https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/fetch/Resource.h:338: // Used by ImageResource to support LoFi image reload. Shall we have a stronger comment here? e.g., other sub-classes should not use this interface, or something.
https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/fetch/ImageResource.h (right): https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/fetch/ImageResource.h:159: bool shouldReloadBrokenPlaceholder() const { Now we can make shouldReloadBrokenPlaceholder() private. https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/fetch/Resource.h:339: virtual void mayReloadBrokenResource(ResourceFetcher*, The name "mayReloadBrokenResource" looks unclear to me, especially I prefer a name that explicitly states this is only for LoFi or Placeholder reloading. A candidate might be merging mayReloadBrokenResource() logic and ReloadBrokenResourcePolicy parameter into reloadIfLoFiOrPlaceholder() and renaming reloadIfLoFiOrPlaceholder() to reloadIfLoFiOrPlaceholderImage() (and exposing it in Resource), but I'm not so sure.
How about this change? https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/fetch/ImageResource.h (right): https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/fetch/ImageResource.h:159: bool shouldReloadBrokenPlaceholder() const { On 2016/11/17 09:00:33, hiroshige wrote: > Now we can make shouldReloadBrokenPlaceholder() private. Done. https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/fetch/Resource.h:339: virtual void mayReloadBrokenResource(ResourceFetcher*, On 2016/11/17 09:00:33, hiroshige wrote: > The name "mayReloadBrokenResource" looks unclear to me, especially I prefer a > name that explicitly states this is only for LoFi or Placeholder reloading. > > A candidate might be merging mayReloadBrokenResource() logic and > ReloadBrokenResourcePolicy parameter into reloadIfLoFiOrPlaceholder() and > renaming reloadIfLoFiOrPlaceholder() to reloadIfLoFiOrPlaceholderImage() (and > exposing it in Resource), but I'm not so sure. Done.
Description was changed from ========== Loading: remove dependencies from ResourceFetcher to ImageResource To move ImageResource out of core/fetch, remove unexpected dependencies from ResourceFetcher to ImageResource. BUG=655920 ========== to ========== Loading: remove dependencies from ResourceFetcher to ImageResource To move ImageResource out of core/fetch, remove unexpected dependencies from ResourceFetcher to ImageResource. (decided to wait for hiroshige@'s ImageResource cleanup) BUG=655920 ==========
On 2016/11/17 10:15:43, toyoshim wrote: > How about this change? > > https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... > File third_party/WebKit/Source/core/fetch/ImageResource.h (right): > > https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... > third_party/WebKit/Source/core/fetch/ImageResource.h:159: bool > shouldReloadBrokenPlaceholder() const { > On 2016/11/17 09:00:33, hiroshige wrote: > > Now we can make shouldReloadBrokenPlaceholder() private. > > Done. > > https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... > File third_party/WebKit/Source/core/fetch/Resource.h (right): > > https://codereview.chromium.org/2510883003/diff/20001/third_party/WebKit/Sour... > third_party/WebKit/Source/core/fetch/Resource.h:339: virtual void > mayReloadBrokenResource(ResourceFetcher*, > On 2016/11/17 09:00:33, hiroshige wrote: > > The name "mayReloadBrokenResource" looks unclear to me, especially I prefer a > > name that explicitly states this is only for LoFi or Placeholder reloading. > > > > A candidate might be merging mayReloadBrokenResource() logic and > > ReloadBrokenResourcePolicy parameter into reloadIfLoFiOrPlaceholder() and > > renaming reloadIfLoFiOrPlaceholder() to reloadIfLoFiOrPlaceholderImage() (and > > exposing it in Resource), but I'm not so sure. > > Done. As discussed offline, my CL https://codereview.chromium.org/2527353002/ will remove the dependency from ResourceFetcher to ImageResource so moving ImageResource after that would be easier. (I expect the CL will take 2~3 weeks to be landed)
Description was changed from ========== Loading: remove dependencies from ResourceFetcher to ImageResource To move ImageResource out of core/fetch, remove unexpected dependencies from ResourceFetcher to ImageResource. (decided to wait for hiroshige@'s ImageResource cleanup) BUG=655920 ========== to ========== Loading: remove dependencies from ResourceFetcher to ImageResource To move ImageResource out of core/fetch, remove unexpected dependencies from ResourceFetcher to ImageResource. BUG=655920 ==========
As we discussed again, this patch will follow the hiroshige@'s patch 4. I rebased the last patch set to have a right dependency to the patch.
yhirano: just in case, this CL is ready for review and will go before the CL you reviewed at crrev.com/2549093008
https://codereview.chromium.org/2510883003/diff/60001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2510883003/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:1441: resource->reloadIfLoFiOrPlaceholderImage(this, Resource::kReloadAlways); Is the nullity check needed?
non-owner lgtm once yhirano@'s comment is addressed.
https://codereview.chromium.org/2510883003/diff/60001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp (right): https://codereview.chromium.org/2510883003/diff/60001/third_party/WebKit/Sour... third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp:1441: resource->reloadIfLoFiOrPlaceholderImage(this, Resource::kReloadAlways); On 2016/12/12 06:11:57, yhirano wrote: > Is the nullity check needed? Done.
The CQ bit was checked by toyoshim@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
yhirano: ptal
lgtm
The CQ bit was checked by toyoshim@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from hiroshige@chromium.org Link to the patchset: https://codereview.chromium.org/2510883003/#ps80001 (title: "rebase + review #11")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by toyoshim@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from hiroshige@chromium.org, yhirano@chromium.org Link to the patchset: https://codereview.chromium.org/2510883003/#ps100001 (title: "rebase ResourceFetcher.cpp")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 100001, "attempt_start_ts": 1481630516397910,
"parent_rev": "1a7e8be67d171b6111b132cded069f90cc8237a5", "commit_rev":
"4a252987acf5e874393f4cd02835d125c948973e"}
Message was sent while issue was closed.
Description was changed from ========== Loading: remove dependencies from ResourceFetcher to ImageResource To move ImageResource out of core/fetch, remove unexpected dependencies from ResourceFetcher to ImageResource. BUG=655920 ========== to ========== Loading: remove dependencies from ResourceFetcher to ImageResource To move ImageResource out of core/fetch, remove unexpected dependencies from ResourceFetcher to ImageResource. BUG=655920 Review-Url: https://codereview.chromium.org/2510883003 ==========
Message was sent while issue was closed.
Committed patchset #6 (id:100001)
Message was sent while issue was closed.
Description was changed from ========== Loading: remove dependencies from ResourceFetcher to ImageResource To move ImageResource out of core/fetch, remove unexpected dependencies from ResourceFetcher to ImageResource. BUG=655920 Review-Url: https://codereview.chromium.org/2510883003 ========== to ========== Loading: remove dependencies from ResourceFetcher to ImageResource To move ImageResource out of core/fetch, remove unexpected dependencies from ResourceFetcher to ImageResource. BUG=655920 Committed: https://crrev.com/31d4e7d45fb313e90ff623b769cf5e06265db7ce Cr-Commit-Position: refs/heads/master@{#438156} ==========
Message was sent while issue was closed.
Patchset 6 (id:??) landed as https://crrev.com/31d4e7d45fb313e90ff623b769cf5e06265db7ce Cr-Commit-Position: refs/heads/master@{#438156} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
