This source file includes following definitions.
- IsStorageProtected
- IsStorageUnlimited
- IsStorageSessionOnly
- CanQueryDiskSize
- IsFileHandler
- HasSessionOnlyOrigins
#include "chrome/browser/extensions/mock_extension_special_storage_policy.h"
MockExtensionSpecialStoragePolicy::MockExtensionSpecialStoragePolicy()
: ExtensionSpecialStoragePolicy(NULL) {}
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::CanQueryDiskSize(const GURL& origin) {
return false;
}
bool MockExtensionSpecialStoragePolicy::IsFileHandler(
const std::string& extension_id) {
return false;
}
bool MockExtensionSpecialStoragePolicy::HasSessionOnlyOrigins() {
return false;
}
MockExtensionSpecialStoragePolicy::~MockExtensionSpecialStoragePolicy() {}