DescriptionLoading: 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 #
Dependent Patchsets: Messages
Total messages: 20 (12 generated)
|