Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: extensions/shell/browser/shell_special_storage_policy.h

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_
7 7
8 #include "storage/browser/quota/special_storage_policy.h" 8 #include "storage/browser/quota/special_storage_policy.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 // A simple storage policy for app_shell which does not limit storage 12 // A simple storage policy for app_shell which does not limit storage
13 // capabilities and aims to be as permissive as possible. 13 // capabilities and aims to be as permissive as possible.
14 class ShellSpecialStoragePolicy : public storage::SpecialStoragePolicy { 14 class ShellSpecialStoragePolicy : public storage::SpecialStoragePolicy {
15 public: 15 public:
16 ShellSpecialStoragePolicy(); 16 ShellSpecialStoragePolicy();
17 17
18 // storage::SpecialStoragePolicy implementation. 18 // storage::SpecialStoragePolicy implementation.
19 bool IsStorageProtected(const GURL& origin) override; 19 bool IsStorageProtected(const GURL& origin) override;
20 bool IsStorageUnlimited(const GURL& origin) override; 20 bool IsStorageUnlimited(const GURL& origin) override;
21 bool IsStorageDurable(const GURL& origin) override; 21 bool IsStorageDurable(const GURL& origin) override;
22 bool IsStorageSessionOnly(const GURL& origin) override; 22 bool IsStorageSessionOnly(const GURL& origin) override;
23 bool CanQueryDiskSize(const GURL& origin) override;
24 bool HasIsolatedStorage(const GURL& origin) override; 23 bool HasIsolatedStorage(const GURL& origin) override;
25 bool HasSessionOnlyOrigins() override; 24 bool HasSessionOnlyOrigins() override;
26 25
27 protected: 26 protected:
28 ~ShellSpecialStoragePolicy() override; 27 ~ShellSpecialStoragePolicy() override;
29 }; 28 };
30 29
31 } // namespace extensions 30 } // namespace extensions
32 31
33 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_ 32 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_content_browser_client.cc ('k') | extensions/shell/browser/shell_special_storage_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698