OSDN Git Service

Refactor the WebStorage size management:
authorAndrei Popescu <andreip@google.com>
Mon, 27 Jul 2009 11:01:59 +0000 (12:01 +0100)
committerAndrei Popescu <andreip@google.com>
Wed, 29 Jul 2009 10:08:24 +0000 (11:08 +0100)
commit79e82b7ba72a7278911edf0dd7b03c65c4ec0e9d
tree763bde3a478037641352fde365e0829cf14eea13
parent186e593776c396bde3d720addd6f6842fe880a7c
Refactor the WebStorage size management:
- Abandon the Quota UI: it does not make sense to ask the users to decide individual database quota increases. It is unlikely anyone will be able to make a meaningul decision.
- Introduce a global limit for all WebStorage content. This is shared between Database and AppCache.
- Make the quota increase decision automatic
- Treat out-of-space situations by creaying a system notification (TODO).
src/com/android/browser/BrowserActivity.java
src/com/android/browser/BrowserSettings.java
src/com/android/browser/PermissionDialog.java [deleted file]
src/com/android/browser/WebStorageSizeManager.java [new file with mode: 0644]
tests/src/com/android/browser/WebStorageSizeManagerUnitTests.java [moved from tests/src/com/android/browser/BrowserSettingsUnitTests.java with 52% similarity]