mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
WebSQL: Don't pass name/metadata around, use content::StorageUsageInfo
https://chromium-review.googlesource.com/c/chromium/src/+/1432375
This commit is contained in:
committed by
Samuel Attard
parent
b99ff3448e
commit
7270a08f9c
@@ -19,10 +19,7 @@ ContentSettingsObserver::ContentSettingsObserver(
|
||||
|
||||
ContentSettingsObserver::~ContentSettingsObserver() {}
|
||||
|
||||
bool ContentSettingsObserver::AllowDatabase(
|
||||
const blink::WebString& name,
|
||||
const blink::WebString& display_name,
|
||||
unsigned estimated_size) {
|
||||
bool ContentSettingsObserver::AllowDatabase() {
|
||||
blink::WebFrame* frame = render_frame()->GetWebFrame();
|
||||
if (frame->GetSecurityOrigin().IsUnique() ||
|
||||
frame->Top()->GetSecurityOrigin().IsUnique())
|
||||
|
||||
@@ -18,9 +18,7 @@ class ContentSettingsObserver : public content::RenderFrameObserver,
|
||||
~ContentSettingsObserver() override;
|
||||
|
||||
// blink::WebContentSettingsClient implementation.
|
||||
bool AllowDatabase(const blink::WebString& name,
|
||||
const blink::WebString& display_name,
|
||||
unsigned estimated_size) override;
|
||||
bool AllowDatabase() override;
|
||||
bool AllowStorage(bool local) override;
|
||||
bool AllowIndexedDB(const blink::WebSecurityOrigin& security_origin) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user