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

Issue 2572373003: Loading: pass minimum information to Resource::resourceTypeToString() (Closed)

Created:
4 years ago by Takashi Toyoshima
Modified:
4 years ago
Reviewers:
Yoav Weiss, yhirano
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

Loading: pass minimum information to Resource::resourceTypeToString() Now Resource::resourceTypeToString() takes const FetchInitiatorInfo&, but just uses FetchInitiatorInfo.name. This patch changes the interface to only take const AtomicString& of FetchInitiatorInfo.name to have minimum dependencies each other. Also add a static_assert() for FetchInitiatorTypeNames because code looks easily broken when someone want to add a new type. This is a preparation to remove binding/core dependency from core/fetch. BUG=655920 Committed: https://crrev.com/13f041896a0a9a9bbca893f9f4fb62ce4b500827 Cr-Commit-Position: refs/heads/master@{#439442}

Patch Set 1 #

Total comments: 4

Patch Set 2 : review #9 #11 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -9 lines) Patch
M third_party/WebKit/Source/core/fetch/Resource.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 6 chunks +12 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (12 generated)
Takashi Toyoshima
ptal
4 years ago (2016-12-15 11:07:09 UTC) #5
Yoav Weiss
LGTM https://codereview.chromium.org/2572373003/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2572373003/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode57 third_party/WebKit/Source/core/fetch/Resource.cpp:57: #include <type_traits> Why is this header needed?
4 years ago (2016-12-15 14:53:55 UTC) #9
Takashi Toyoshima
https://codereview.chromium.org/2572373003/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2572373003/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode57 third_party/WebKit/Source/core/fetch/Resource.cpp:57: #include <type_traits> Oh, I mistakenly use this but the ...
4 years ago (2016-12-19 05:47:48 UTC) #10
yhirano
lgtm https://codereview.chromium.org/2572373003/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2572373003/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode1031 third_party/WebKit/Source/core/fetch/Resource.cpp:1031: static const char* initatorTypeNameToString( Not related to this ...
4 years ago (2016-12-19 06:23:08 UTC) #11
Takashi Toyoshima
https://codereview.chromium.org/2572373003/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/2572373003/diff/1/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode1031 third_party/WebKit/Source/core/fetch/Resource.cpp:1031: static const char* initatorTypeNameToString( On 2016/12/19 06:23:08, yhirano wrote: ...
4 years ago (2016-12-19 06:59:01 UTC) #12
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/2572373003/20001
4 years ago (2016-12-19 06:59:39 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-19 09:26:32 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-19 09:28:42 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/13f041896a0a9a9bbca893f9f4fb62ce4b500827
Cr-Commit-Position: refs/heads/master@{#439442}

Powered by Google App Engine
This is Rietveld 408576698