electron/shell/browser/special_storage_policy.h

33 lines
1 KiB
C
Raw Normal View History

2015-10-12 13:09:39 +00:00
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
2019-06-19 20:56:58 +00:00
#ifndef SHELL_BROWSER_SPECIAL_STORAGE_POLICY_H_
#define SHELL_BROWSER_SPECIAL_STORAGE_POLICY_H_
2015-10-12 13:09:39 +00:00
#include "storage/browser/quota/special_storage_policy.h"
namespace electron {
2015-10-12 13:09:39 +00:00
class SpecialStoragePolicy : public storage::SpecialStoragePolicy {
public:
SpecialStoragePolicy();
// storage::SpecialStoragePolicy implementation.
bool IsStorageProtected(const GURL& origin) override;
bool IsStorageUnlimited(const GURL& origin) override;
2015-12-07 11:55:01 +00:00
bool IsStorageDurable(const GURL& origin) override;
2015-10-12 13:09:39 +00:00
bool HasIsolatedStorage(const GURL& origin) override;
2017-04-04 04:43:49 +00:00
bool IsStorageSessionOnly(const GURL& origin) override;
2015-10-12 13:09:39 +00:00
bool HasSessionOnlyOrigins() override;
network::SessionCleanupCookieStore::DeleteCookiePredicate
CreateDeleteCookieOnExitPredicate() override;
2015-10-12 13:09:39 +00:00
protected:
~SpecialStoragePolicy() override;
};
} // namespace electron
2015-10-12 13:09:39 +00:00
2019-06-19 20:56:58 +00:00
#endif // SHELL_BROWSER_SPECIAL_STORAGE_POLICY_H_