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

Issue 1751203003: Merge ResourceLoader's ResourceLoaderState and ConnectionState enums (Closed)

Created:
4 years, 9 months ago by Nate Chapin
Modified:
4 years, 9 months ago
Reviewers:
hiroshige, yhirano
CC:
chromium-reviews, blink-reviews, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Merge ResourceLoader's ResourceLoaderState and ConnectionState enums ResourceLoaderState::Initialized maps to ConnectionState{New,Started, ReceivedResponse,ReceivingData}, ResourceLoaderState::Finishing maps to ConnectionState{FinishedLoading,Canceled,Failed}. Add a new ConnectionStateReleased to match ResourceLoaderState::Terminated. These enums used to be in different classes. The classes were merged a couple of years ago, but the state machines were left as-is. BUG= Committed: https://crrev.com/7ee9c546d4c87bb1cc9eb5a81451005fc80133cd Cr-Commit-Position: refs/heads/master@{#378924}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add ResourceLoader::isFinishing #

Total comments: 2

Patch Set 3 : Remove spurious newline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -87 lines) Patch
M third_party/WebKit/Source/core/fetch/ResourceLoader.h View 1 3 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.cpp View 1 2 22 chunks +50 lines, -78 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1751203003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1751203003/1
4 years, 9 months ago (2016-03-02 18:42:10 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-02 19:58:24 UTC) #4
Nate Chapin
Another ResourceLoader cleanup :)
4 years, 9 months ago (2016-03-02 20:17:29 UTC) #6
yhirano
https://codereview.chromium.org/1751203003/diff/1/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp File third_party/WebKit/Source/core/fetch/ResourceLoader.cpp (right): https://codereview.chromium.org/1751203003/diff/1/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp#newcode230 third_party/WebKit/Source/core/fetch/ResourceLoader.cpp:230: if (m_state >= ConnectionStateFinishedLoading) { How about having |isFinishing| ...
4 years, 9 months ago (2016-03-02 20:37:32 UTC) #7
Nate Chapin
https://codereview.chromium.org/1751203003/diff/1/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp File third_party/WebKit/Source/core/fetch/ResourceLoader.cpp (right): https://codereview.chromium.org/1751203003/diff/1/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp#newcode230 third_party/WebKit/Source/core/fetch/ResourceLoader.cpp:230: if (m_state >= ConnectionStateFinishedLoading) { On 2016/03/02 20:37:32, yhirano ...
4 years, 9 months ago (2016-03-02 23:08:07 UTC) #8
yhirano
lgtm https://codereview.chromium.org/1751203003/diff/20001/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp File third_party/WebKit/Source/core/fetch/ResourceLoader.cpp (right): https://codereview.chromium.org/1751203003/diff/20001/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp#newcode220 third_party/WebKit/Source/core/fetch/ResourceLoader.cpp:220: needless empty line?
4 years, 9 months ago (2016-03-02 23:23:23 UTC) #9
Nate Chapin
https://codereview.chromium.org/1751203003/diff/20001/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp File third_party/WebKit/Source/core/fetch/ResourceLoader.cpp (right): https://codereview.chromium.org/1751203003/diff/20001/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp#newcode220 third_party/WebKit/Source/core/fetch/ResourceLoader.cpp:220: On 2016/03/02 23:23:23, yhirano wrote: > needless empty line? ...
4 years, 9 months ago (2016-03-02 23:24:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1751203003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1751203003/40001
4 years, 9 months ago (2016-03-03 00:33:22 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-03 02:36:26 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 02:37:32 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7ee9c546d4c87bb1cc9eb5a81451005fc80133cd
Cr-Commit-Position: refs/heads/master@{#378924}

Powered by Google App Engine
This is Rietveld 408576698