WebSQL: Don't pass name/metadata around, use content::StorageUsageInfo
1432375
This commit is contained in:
parent
b99ff3448e
commit
7270a08f9c
2 changed files with 2 additions and 7 deletions
|
@ -19,10 +19,7 @@ ContentSettingsObserver::ContentSettingsObserver(
|
||||||
|
|
||||||
ContentSettingsObserver::~ContentSettingsObserver() {}
|
ContentSettingsObserver::~ContentSettingsObserver() {}
|
||||||
|
|
||||||
bool ContentSettingsObserver::AllowDatabase(
|
bool ContentSettingsObserver::AllowDatabase() {
|
||||||
const blink::WebString& name,
|
|
||||||
const blink::WebString& display_name,
|
|
||||||
unsigned estimated_size) {
|
|
||||||
blink::WebFrame* frame = render_frame()->GetWebFrame();
|
blink::WebFrame* frame = render_frame()->GetWebFrame();
|
||||||
if (frame->GetSecurityOrigin().IsUnique() ||
|
if (frame->GetSecurityOrigin().IsUnique() ||
|
||||||
frame->Top()->GetSecurityOrigin().IsUnique())
|
frame->Top()->GetSecurityOrigin().IsUnique())
|
||||||
|
|
|
@ -18,9 +18,7 @@ class ContentSettingsObserver : public content::RenderFrameObserver,
|
||||||
~ContentSettingsObserver() override;
|
~ContentSettingsObserver() override;
|
||||||
|
|
||||||
// blink::WebContentSettingsClient implementation.
|
// blink::WebContentSettingsClient implementation.
|
||||||
bool AllowDatabase(const blink::WebString& name,
|
bool AllowDatabase() override;
|
||||||
const blink::WebString& display_name,
|
|
||||||
unsigned estimated_size) override;
|
|
||||||
bool AllowStorage(bool local) override;
|
bool AllowStorage(bool local) override;
|
||||||
bool AllowIndexedDB(const blink::WebSecurityOrigin& security_origin) override;
|
bool AllowIndexedDB(const blink::WebSecurityOrigin& security_origin) override;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue