Chromium Code Reviews
DescriptionIntroduce the concept of web schemes capable of storage
Cookies, local storage, IndexedDB, etc. can be used for various URL schemes,
including Chrome-specific and internal ones such as chrome-extension://,
chrome://, chrome-devtools:// etc.
However, in the browsing_data/ codebase, when the user chooses to delete
"site data", we must only delete data from actual websites that user visited,
not data from Chrome's internal modules; that means data associated with
schemes like http[s]://, file://, etc.
Until now, this definition was defined as
ChildProcessSecurityPolicy::IsWebSafeScheme() minus the embedder-specific
schemes chrome-extension:// and chrome-devtools://.
As we're moving parts of browsing_data/ codebase to content/ (crbug.com/668114),
this approach is not satisfactory. We need a definition that can be used
in content/, and embedders can possibly add more schemes, but not remove
them.
This CL introduces such definition to url_utils.h.
BUG=668114
Review-Url: https://codereview.chromium.org/2661543003
Cr-Commit-Position: refs/heads/master@{#448957}
Committed: https://chromium.googlesource.com/chromium/src/+/7e5c61fd4a063db154f623e75bc71bdcc4bf65fc
Patch Set 1 #
Messages
Total messages: 17 (9 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||