[go: nahoru, domu]

blob: 7548dcdb92fb5dd452064cae7cded6042988986d [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/mock_extension_special_storage_policy.h"
MockExtensionSpecialStoragePolicy::MockExtensionSpecialStoragePolicy()
: ExtensionSpecialStoragePolicy(nullptr) {}
bool MockExtensionSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
return protected_.find(origin) != protected_.end();
}
bool MockExtensionSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
return false;
}
bool MockExtensionSpecialStoragePolicy::IsStorageSessionOnly(
const GURL& origin) {
return false;
}
bool MockExtensionSpecialStoragePolicy::HasSessionOnlyOrigins() {
return false;
}
MockExtensionSpecialStoragePolicy::~MockExtensionSpecialStoragePolicy() {}