refactor: move SpecialStoragePolicy from brightray to atom (#13944)
This commit is contained in:
parent
fc730cc705
commit
7253c7f843
8 changed files with 25 additions and 23 deletions
41
atom/browser/special_storage_policy.cc
Normal file
41
atom/browser/special_storage_policy.cc
Normal file
|
@ -0,0 +1,41 @@
|
|||
// 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 "atom/browser/special_storage_policy.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
SpecialStoragePolicy::SpecialStoragePolicy() {}
|
||||
|
||||
SpecialStoragePolicy::~SpecialStoragePolicy() {}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
bool SpecialStoragePolicy::ShouldDeleteCookieOnExit(const GURL& origin) {
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace atom
|
Loading…
Add table
Add a link
Reference in a new issue