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

Issue 2468883003: [ImageResource 0b] Decouple ImageResourceObserver::imageNotifyFinished() from notifyFinished() (Closed)

Created:
4 years, 1 month ago by hiroshige
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.

Description

Decouple ImageResourceObserver::imageNotifyFinished() from notifyFinished() Previously, imageNotifyFinished() is coupled with ResourceClient::notifyFinished(). In order to decouple ImageResorceObserver from resource loading and make it purely image-related observer, this CL make imageNotifyFinished() to be called after ImageResourceObserver::imageChanged(), not notifyFinished(). BUG=667641 Committed: https://crrev.com/d8fa1cd54a5df1a17fb9359a5b9cac00293517aa Cr-Commit-Position: refs/heads/master@{#435235}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : rebase/test fix #

Patch Set 6 : temp #

Patch Set 7 : Rebase #

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Patch Set 11 : Rebase #

Patch Set 12 : Rebase #

Total comments: 2

Patch Set 13 : Use enum for isNotifyingFinish #

Patch Set 14 : Rebase #

Total comments: 2

Patch Set 15 : comment #

Patch Set 16 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -30 lines) Patch
M third_party/WebKit/Source/core/fetch/ImageResource.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 9 chunks +20 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResourceObserver.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 17 chunks +19 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/MockResourceClients.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MockResourceClients.cpp View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 73 (59 generated)
hiroshige
PTAL.
4 years ago (2016-11-29 10:47:18 UTC) #50
kouhei (in TOK)
https://codereview.chromium.org/2468883003/diff/220001/third_party/WebKit/Source/core/fetch/ImageResource.h File third_party/WebKit/Source/core/fetch/ImageResource.h (right): https://codereview.chromium.org/2468883003/diff/220001/third_party/WebKit/Source/core/fetch/ImageResource.h#newcode194 third_party/WebKit/Source/core/fetch/ImageResource.h:194: void notifyObservers(bool isNotifyingFinish, Please change bool -> enum
4 years ago (2016-11-30 03:48:22 UTC) #52
hiroshige
https://codereview.chromium.org/2468883003/diff/220001/third_party/WebKit/Source/core/fetch/ImageResource.h File third_party/WebKit/Source/core/fetch/ImageResource.h (right): https://codereview.chromium.org/2468883003/diff/220001/third_party/WebKit/Source/core/fetch/ImageResource.h#newcode194 third_party/WebKit/Source/core/fetch/ImageResource.h:194: void notifyObservers(bool isNotifyingFinish, On 2016/11/30 03:48:22, kouhei wrote: > ...
4 years ago (2016-11-30 05:21:40 UTC) #55
kouhei (in TOK)
lgtm
4 years ago (2016-11-30 05:31:24 UTC) #56
yhirano
Now imageNotifyFinished is preceded by imageChanged. How about merging two notifications by adding a parameter?
4 years ago (2016-11-30 05:42:57 UTC) #57
hiroshige
On 2016/11/30 05:42:57, yhirano wrote: > Now imageNotifyFinished is preceded by imageChanged. How about merging ...
4 years ago (2016-11-30 05:49:28 UTC) #58
yhirano
On 2016/11/30 05:49:28, hiroshige wrote: > On 2016/11/30 05:42:57, yhirano wrote: > > Now imageNotifyFinished ...
4 years ago (2016-11-30 06:53:15 UTC) #61
yhirano
https://codereview.chromium.org/2468883003/diff/260001/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2468883003/diff/260001/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode696 third_party/WebKit/Source/core/fetch/ImageResource.cpp:696: // We notify clients/observers of finish here, and they ...
4 years ago (2016-11-30 07:00:32 UTC) #62
hiroshige
On 2016/11/30 06:53:15, yhirano wrote: > On 2016/11/30 05:49:28, hiroshige wrote: > > On 2016/11/30 ...
4 years ago (2016-11-30 07:00:34 UTC) #63
hiroshige
https://codereview.chromium.org/2468883003/diff/260001/third_party/WebKit/Source/core/fetch/ImageResource.cpp File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2468883003/diff/260001/third_party/WebKit/Source/core/fetch/ImageResource.cpp#newcode696 third_party/WebKit/Source/core/fetch/ImageResource.cpp:696: // We notify clients/observers of finish here, and they ...
4 years ago (2016-11-30 07:04:24 UTC) #64
yhirano
lgtm
4 years ago (2016-11-30 07:06:05 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2468883003/300001
4 years ago (2016-11-30 11:18:59 UTC) #68
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years ago (2016-11-30 12:58:37 UTC) #71
commit-bot: I haz the power
4 years ago (2016-11-30 13:01:01 UTC) #73
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/d8fa1cd54a5df1a17fb9359a5b9cac00293517aa
Cr-Commit-Position: refs/heads/master@{#435235}

Powered by Google App Engine
This is Rietveld 408576698