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:46:59 +00:00
|
|
|
#include "shell/browser/special_storage_policy.h"
|
2015-10-12 13:09:39 +00:00
|
|
|
|
2018-07-20 21:10:46 +00:00
|
|
|
#include "base/bind.h"
|
|
|
|
#include "base/callback.h"
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
namespace electron {
|
2015-10-12 13:09:39 +00:00
|
|
|
|
2018-04-18 01:56:12 +00:00
|
|
|
SpecialStoragePolicy::SpecialStoragePolicy() {}
|
2015-10-12 13:09:39 +00:00
|
|
|
|
2018-04-18 01:56:12 +00:00
|
|
|
SpecialStoragePolicy::~SpecialStoragePolicy() {}
|
2015-10-12 13:09:39 +00:00
|
|
|
|
|
|
|
bool SpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool SpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2015-12-07 11:55:01 +00:00
|
|
|
bool SpecialStoragePolicy::IsStorageDurable(const GURL& origin) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2017-04-04 04:43:49 +00:00
|
|
|
bool SpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) {
|
2015-10-12 13:09:39 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-04-04 04:43:49 +00:00
|
|
|
bool SpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) {
|
2015-10-12 13:09:39 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-04-04 04:43:49 +00:00
|
|
|
bool SpecialStoragePolicy::HasSessionOnlyOrigins() {
|
2015-10-12 13:09:39 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-10-02 22:19:34 +00:00
|
|
|
network::SessionCleanupCookieStore::DeleteCookiePredicate
|
2018-07-20 21:10:46 +00:00
|
|
|
SpecialStoragePolicy::CreateDeleteCookieOnExitPredicate() {
|
2018-10-02 22:19:34 +00:00
|
|
|
return network::SessionCleanupCookieStore::DeleteCookiePredicate();
|
2018-04-08 19:39:07 +00:00
|
|
|
}
|
|
|
|
|
2019-06-19 21:23:04 +00:00
|
|
|
} // namespace electron
|