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

Issue 2394793002: Resource: helper class to prohibit {add,remove}Client() calls in scope (Closed)

Created:
4 years, 2 months ago by Shao-Chuan Lee
Modified:
4 years, 2 months ago
CC:
chromium-reviews, blink-reviews, loading-reviews+fetch_chromium.org, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org, Takashi Toyoshima, Kunihiko Sakamoto, kouhei (in TOK)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Resource: helper class to prohibit {add,remove}Client() calls in scope Helper class for Resource subclasses to prohibit addClient() and removeClient() calls e.g. in ResourceClient callbacks. BUG=570205 Committed: https://crrev.com/d9143c64ebe54aef74585efc460f62441eb96efd Cr-Commit-Position: refs/heads/master@{#423815}

Patch Set 1 #

Total comments: 14

Patch Set 2 : use MockResourceClient, fixup #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -0 lines) Patch
M third_party/WebKit/Source/core/fetch/MockResourceClients.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.h View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceTest.cpp View 1 2 3 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
Shao-Chuan Lee
Splitting this part off https://crrev.com/2390583002 as suggested by hiroshige@. PTAL
4 years, 2 months ago (2016-10-05 08:14:17 UTC) #2
kouhei (in TOK)
Thanks for working on this! https://codereview.chromium.org/2394793002/diff/1/third_party/WebKit/Source/core/fetch/ResourceTest.cpp File third_party/WebKit/Source/core/fetch/ResourceTest.cpp (right): https://codereview.chromium.org/2394793002/diff/1/third_party/WebKit/Source/core/fetch/ResourceTest.cpp#newcode58 third_party/WebKit/Source/core/fetch/ResourceTest.cpp:58: ResourceRequest(), Resource::Raw, ResourceLoaderOptions()); We ...
4 years, 2 months ago (2016-10-05 08:29:42 UTC) #6
hiroshige
https://codereview.chromium.org/2394793002/diff/1/third_party/WebKit/Source/core/fetch/ResourceTest.cpp File third_party/WebKit/Source/core/fetch/ResourceTest.cpp (right): https://codereview.chromium.org/2394793002/diff/1/third_party/WebKit/Source/core/fetch/ResourceTest.cpp#newcode54 third_party/WebKit/Source/core/fetch/ResourceTest.cpp:54: class TestProhibitAddRemoveClientResource : public Resource { optional: I'd like ...
4 years, 2 months ago (2016-10-05 08:37:26 UTC) #7
Shao-Chuan Lee
https://codereview.chromium.org/2394793002/diff/1/third_party/WebKit/Source/core/fetch/ResourceTest.cpp File third_party/WebKit/Source/core/fetch/ResourceTest.cpp (right): https://codereview.chromium.org/2394793002/diff/1/third_party/WebKit/Source/core/fetch/ResourceTest.cpp#newcode62 third_party/WebKit/Source/core/fetch/ResourceTest.cpp:62: EXPECT_DEATH(addClient(nullptr), "!m_isAddRemoveClientProhibited"); On 2016/10/05 08:37:25, hiroshige wrote: > addClient(nullptr) ...
4 years, 2 months ago (2016-10-05 08:51:20 UTC) #8
Shao-Chuan Lee
Adding an empty ctor to MockResourceClient. PTAL https://codereview.chromium.org/2394793002/diff/1/third_party/WebKit/Source/core/fetch/ResourceTest.cpp File third_party/WebKit/Source/core/fetch/ResourceTest.cpp (right): https://codereview.chromium.org/2394793002/diff/1/third_party/WebKit/Source/core/fetch/ResourceTest.cpp#newcode54 third_party/WebKit/Source/core/fetch/ResourceTest.cpp:54: class TestProhibitAddRemoveClientResource ...
4 years, 2 months ago (2016-10-05 09:04:53 UTC) #9
kouhei (in TOK)
lgtm
4 years, 2 months ago (2016-10-06 23:55:38 UTC) #10
yhirano
lgtm
4 years, 2 months ago (2016-10-07 03:40:50 UTC) #11
hiroshige
lgtm!
4 years, 2 months ago (2016-10-07 06:05:31 UTC) #22
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/2394793002/40001
4 years, 2 months ago (2016-10-07 07:39:14 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-07 07:43:37 UTC) #28
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 07:46:01 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d9143c64ebe54aef74585efc460f62441eb96efd
Cr-Commit-Position: refs/heads/master@{#423815}

Powered by Google App Engine
This is Rietveld 408576698