2015-10-12 21:09:39 +08: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.
|
|
|
|
|
2018-08-21 17:51:04 +02:00
|
|
|
#include "atom/browser/special_storage_policy.h"
|
2015-10-12 21:09:39 +08:00
|
|
|
|
2018-07-21 02:40:46 +05:30
|
|
|
#include "base/bind.h"
|
|
|
|
#include "base/callback.h"
|
|
|
|
|
2018-08-21 17:51:04 +02:00
|
|
|
namespace atom {
|
2015-10-12 21:09:39 +08:00
|
|
|
|
2018-04-17 21:56:12 -04:00
|
|
|
SpecialStoragePolicy::SpecialStoragePolicy() {}
|
2015-10-12 21:09:39 +08:00
|
|
|
|
2018-04-17 21:56:12 -04:00
|
|
|
SpecialStoragePolicy::~SpecialStoragePolicy() {}
|
2015-10-12 21:09:39 +08:00
|
|
|
|
|
|
|
bool SpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool SpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2015-12-07 19:55:01 +08:00
|
|
|
bool SpecialStoragePolicy::IsStorageDurable(const GURL& origin) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2017-04-04 13:43:49 +09:00
|
|
|
bool SpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) {
|
2015-10-12 21:09:39 +08:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-04-04 13:43:49 +09:00
|
|
|
bool SpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) {
|
2015-10-12 21:09:39 +08:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-04-04 13:43:49 +09:00
|
|
|
bool SpecialStoragePolicy::HasSessionOnlyOrigins() {
|
2015-10-12 21:09:39 +08:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-21 02:40:46 +05:30
|
|
|
storage::SpecialStoragePolicy::DeleteCookiePredicate
|
|
|
|
SpecialStoragePolicy::CreateDeleteCookieOnExitPredicate() {
|
|
|
|
return storage::SpecialStoragePolicy::DeleteCookiePredicate();
|
2018-04-09 01:09:07 +05:30
|
|
|
}
|
|
|
|
|
2018-08-21 17:51:04 +02:00
|
|
|
} // namespace atom
|