2b316f3843
* refactor: clang-tidy modernize-use-nullptr * refactor: clang-tidy modernize-use-equals-default * refactor: clang-tidy modernize-make-unique * refactor: omit nullptr arg from unique_ptr.reset() As per comment by @miniak
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
// 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.
|
|
|
|
#include "shell/browser/special_storage_policy.h"
|
|
|
|
#include "base/bind.h"
|
|
#include "base/callback.h"
|
|
|
|
namespace electron {
|
|
|
|
SpecialStoragePolicy::SpecialStoragePolicy() = default;
|
|
|
|
SpecialStoragePolicy::~SpecialStoragePolicy() = default;
|
|
|
|
bool SpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
|
|
return true;
|
|
}
|
|
|
|
bool SpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
|
|
return true;
|
|
}
|
|
|
|
bool SpecialStoragePolicy::IsStorageDurable(const GURL& origin) {
|
|
return true;
|
|
}
|
|
|
|
bool SpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) {
|
|
return false;
|
|
}
|
|
|
|
bool SpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) {
|
|
return false;
|
|
}
|
|
|
|
bool SpecialStoragePolicy::HasSessionOnlyOrigins() {
|
|
return false;
|
|
}
|
|
|
|
network::SessionCleanupCookieStore::DeleteCookiePredicate
|
|
SpecialStoragePolicy::CreateDeleteCookieOnExitPredicate() {
|
|
return network::SessionCleanupCookieStore::DeleteCookiePredicate();
|
|
}
|
|
|
|
} // namespace electron
|