| 
    
      
  | 
  
 Chromium Code Reviews
        
  DescriptionDecouple 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 #
 Messages
    Total messages: 73 (59 generated)
     
  
  
 The CQ bit was checked by hiroshige@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... 
 Description was changed from ========== Decouple ImageResourceObserver::imageNotifyFinished() from resource loading BUG= ========== to ========== Decouple ImageResourceObserver::imageNotifyFinished() from resource loading This CL conceptually reverts https://codereview.chromium.org/1843533005/. 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= ========== 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...) 
 The CQ bit was checked by hiroshige@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. 
 The CQ bit was checked by hiroshige@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. 
 Description was changed from ========== Decouple ImageResourceObserver::imageNotifyFinished() from resource loading This CL conceptually reverts https://codereview.chromium.org/1843533005/. 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= ========== to ========== Decouple ImageResourceObserver::imageNotifyFinished() from resource loading This CL conceptually reverts https://codereview.chromium.org/1843533005/. 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 ========== 
 The CQ bit was checked by hiroshige@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. 
 The CQ bit was checked by hiroshige@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 checked by hiroshige@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 checked by hiroshige@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. 
 The CQ bit was checked by hiroshige@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: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...) 
 Description was changed from ========== Decouple ImageResourceObserver::imageNotifyFinished() from resource loading This CL conceptually reverts https://codereview.chromium.org/1843533005/. 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 ========== to ========== Decouple ImageResourceObserver::imageNotifyFinished() from notifyFinished() This CL conceptually reverts https://codereview.chromium.org/1843533005/. 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 ========== 
 hiroshige@chromium.org changed reviewers: + yhirano@chromium.org 
 The CQ bit was checked by hiroshige@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. 
 The CQ bit was checked by hiroshige@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. 
 The CQ bit was checked by hiroshige@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. 
 The CQ bit was checked by hiroshige@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. 
 Description was changed from ========== Decouple ImageResourceObserver::imageNotifyFinished() from notifyFinished() This CL conceptually reverts https://codereview.chromium.org/1843533005/. 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 ========== to ========== 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 ========== 
 PTAL. 
 kouhei@chromium.org changed reviewers: + kouhei@chromium.org 
 https://codereview.chromium.org/2468883003/diff/220001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/ImageResource.h (right): https://codereview.chromium.org/2468883003/diff/220001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/ImageResource.h:194: void notifyObservers(bool isNotifyingFinish, Please change bool -> enum 
 The CQ bit was checked by hiroshige@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... 
 https://codereview.chromium.org/2468883003/diff/220001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/ImageResource.h (right): https://codereview.chromium.org/2468883003/diff/220001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/ImageResource.h:194: void notifyObservers(bool isNotifyingFinish, On 2016/11/30 03:48:22, kouhei wrote: > Please change bool -> enum Done. 
 lgtm 
 Now imageNotifyFinished is preceded by imageChanged. How about merging two notifications by adding a parameter? 
 On 2016/11/30 05:42:57, yhirano wrote: > Now imageNotifyFinished is preceded by imageChanged. How about merging two > notifications by adding a parameter? I think it's a good thing to do. However, I'd like to postpone it to after I split ImageResource due to the long chain of rebasing. 
 The CQ bit was checked by hiroshige@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... 
 On 2016/11/30 05:49:28, hiroshige wrote: > On 2016/11/30 05:42:57, yhirano wrote: > > Now imageNotifyFinished is preceded by imageChanged. How about merging two > > notifications by adding a parameter? > > I think it's a good thing to do. > However, I'd like to postpone it to after I split ImageResource due to the long > chain of rebasing. Hmm, OK, then please put a TODO comment on ImageResourceObserver.h. 
 https://codereview.chromium.org/2468883003/diff/260001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2468883003/diff/260001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/ImageResource.cpp:696: // We notify clients/observers of finish here, and they will not be This comment should be fixed. 
 On 2016/11/30 06:53:15, yhirano wrote: > On 2016/11/30 05:49:28, hiroshige wrote: > > On 2016/11/30 05:42:57, yhirano wrote: > > > Now imageNotifyFinished is preceded by imageChanged. How about merging two > > > notifications by adding a parameter? > > > > I think it's a good thing to do. > > However, I'd like to postpone it to after I split ImageResource due to the > long > > chain of rebasing. > > Hmm, OK, then please put a TODO comment on ImageResourceObserver.h. Done. 
 https://codereview.chromium.org/2468883003/diff/260001/third_party/WebKit/Sou... File third_party/WebKit/Source/core/fetch/ImageResource.cpp (right): https://codereview.chromium.org/2468883003/diff/260001/third_party/WebKit/Sou... third_party/WebKit/Source/core/fetch/ImageResource.cpp:696: // We notify clients/observers of finish here, and they will not be On 2016/11/30 07:00:32, yhirano wrote: > This comment should be fixed. Done. 
 lgtm 
 The CQ bit was checked by hiroshige@chromium.org 
 The patchset sent to the CQ was uploaded after l-g-t-m from kouhei@chromium.org Link to the patchset: https://codereview.chromium.org/2468883003/#ps300001 (title: "comment") 
 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": 300001, "attempt_start_ts": 1480504724569210,
"parent_rev": "facb9b28b958c1a353cf1968049c21f13d83ef30", "commit_rev":
"e156c6ee0cd0186246a3ecfb956939a167d5c7b1"}
          
 
            
              
                Message was sent while issue was closed.
              
            
             
          
        Description was changed from ========== 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 ========== to ========== 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 ========== 
 
            
              
                Message was sent while issue was closed.
              
            
             
          
        Committed patchset #16 (id:300001) 
 
            
              
                Message was sent while issue was closed.
              
            
             
          
        Description was changed from ========== 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 ========== to ========== 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} ========== 
 
            
              
                Message was sent while issue was closed.
              
            
             
          
        Patchset 16 (id:??) landed as https://crrev.com/d8fa1cd54a5df1a17fb9359a5b9cac00293517aa Cr-Commit-Position: refs/heads/master@{#435235}  | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
