Remove ExtensionPrefs::SetDidExtensionEscalatePermissions.
[chromium-blink-merge.git] / extensions / shell / browser / shell_special_storage_policy.h
blobe59602f2a449caba7977ed38c993a2d66932bb53
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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H_
8 #include "storage/browser/quota/special_storage_policy.h"
10 namespace extensions {
12 // A simple storage policy for app_shell which does not limit storage
13 // capabilities and aims to be as permissive as possible.
14 class ShellSpecialStoragePolicy : public storage::SpecialStoragePolicy {
15 public:
16 ShellSpecialStoragePolicy();
18 // storage::SpecialStoragePolicy implementation.
19 bool IsStorageProtected(const GURL& origin) override;
20 bool IsStorageUnlimited(const GURL& origin) override;
21 bool IsStorageSessionOnly(const GURL& origin) override;
22 bool CanQueryDiskSize(const GURL& origin) override;
23 bool HasIsolatedStorage(const GURL& origin) override;
24 bool HasSessionOnlyOrigins() override;
26 protected:
27 ~ShellSpecialStoragePolicy() override;
30 } // namespace extensions
32 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_SPECIAL_STORAGE_POLICY_H