Allow script to request durable storage permission (chrome side)
commit388c056b78a6cf1f43520e6c44b7ffcc57e7de6c
authordgrogan <dgrogan@chromium.org>
Fri, 14 Aug 2015 20:01:17 +0000 (14 13:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 14 Aug 2015 20:01:53 +0000 (14 20:01 +0000)
treeffc6b6a6dae78abf3d5844d1883ebc50e6945351
parent9f3165b625de0ace7b0cac502f26331795f619af
Allow script to request durable storage permission (chrome side)

- Entry point from blink is PermissionDispatcher::requestPermission
- IPC is handled internally by the permission service
- Permission service stores user's choice in content settings

Corresponding Blink change, which must land first, is
https://codereview.chromium.org/1154573005/

BUG=482814

Review URL: https://codereview.chromium.org/1164073005

Cr-Commit-Position: refs/heads/master@{#343468}
24 files changed:
android_webview/browser/aw_permission_manager.cc
chrome/app/generated_resources.grd
chrome/browser/permissions/permission_bubble_request_impl.cc
chrome/browser/permissions/permission_context.cc
chrome/browser/permissions/permission_context_uma_util.cc
chrome/browser/permissions/permission_manager.cc
chrome/browser/permissions/permission_queue_controller.cc
chrome/browser/storage/OWNERS [new file with mode: 0644]
chrome/browser/storage/durable_storage_browsertest.cc [new file with mode: 0644]
chrome/browser/storage/durable_storage_permission_context.cc [new file with mode: 0644]
chrome/browser/storage/durable_storage_permission_context.h [new file with mode: 0644]
chrome/browser/storage/durable_storage_permission_context_factory.cc [new file with mode: 0644]
chrome/browser/storage/durable_storage_permission_context_factory.h [new file with mode: 0644]
chrome/browser/storage/durable_storage_permission_infobar_delegate.cc [new file with mode: 0644]
chrome/browser/storage/durable_storage_permission_infobar_delegate.h [new file with mode: 0644]
chrome/chrome_browser.gypi
chrome/chrome_tests.gypi
chrome/test/data/durable/durability-window1.html [new file with mode: 0644]
chrome/test/data/durable/durability-window2.html [new file with mode: 0644]
content/browser/permissions/permission_service_impl.cc
content/child/permissions/permission_dispatcher.cc
content/common/permission_service.mojom
content/public/browser/permission_type.h
tools/metrics/histograms/histograms.xml