forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce 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}
- Loading branch information
Showing
4 changed files
with
63 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters