[rsafor] Rename to reflect origin, not site, applicability
The existing implementation already applies to the origin of the
requested URL, and the security considerations document recommends
standardizing this.
See https://github.com/privacycg/storage-access/issues/113
Bug: 1351540
Change-Id: I417f86541de0236f11dc2498e3ffaf863b51a199
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3911735
Reviewed-by: Eric Orth <[email protected]>
Reviewed-by: Illia Klimov <[email protected]>
Reviewed-by: Dominic Farolino <[email protected]>
Commit-Queue: Matt Reichhoff <[email protected]>
Reviewed-by: Chris Fredrickson <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1051452}
diff --git a/chrome/browser/net/storage_test_utils.h b/chrome/browser/net/storage_test_utils.h
index 3e836b7..b54023e 100644
--- a/chrome/browser/net/storage_test_utils.h
+++ b/chrome/browser/net/storage_test_utils.h
@@ -36,10 +36,10 @@
// if it rejects.
bool RequestStorageAccessForFrame(content::RenderFrameHost* frame);
// Helper to request storage access with a site override for a frame using
-// document.requestStorageAccessForSite(site). Returns true if the promise
+// document.requestStorageAccessForOrigin(origin). Returns true if the promise
// resolves; false if it rejects.
-bool RequestStorageAccessForSite(content::RenderFrameHost* frame,
- const std::string& site);
+bool RequestStorageAccessForOrigin(content::RenderFrameHost* frame,
+ const std::string& origin);
// Helper to see if a frame currently has storage access using
// document.hasStorageAccess(). Returns true if the promise resolves with a
// value of true; false otherwise.