Prevent chrome://net-internals/#export from flickering
[chromium-blink-merge.git] / chrome / browser / extensions / mock_extension_special_storage_policy.cc
blobedea80d38e3ff51adad686a8e754c4a2364597db
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/extensions/mock_extension_special_storage_policy.h"
7 MockExtensionSpecialStoragePolicy::MockExtensionSpecialStoragePolicy()
8 : ExtensionSpecialStoragePolicy(NULL) {}
10 bool MockExtensionSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
11 return protected_.find(origin) != protected_.end();
14 bool MockExtensionSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
15 return false;
18 bool MockExtensionSpecialStoragePolicy::IsStorageSessionOnly(
19 const GURL& origin) {
20 return false;
23 bool MockExtensionSpecialStoragePolicy::CanQueryDiskSize(const GURL& origin) {
24 return false;
27 bool MockExtensionSpecialStoragePolicy::IsFileHandler(
28 const std::string& extension_id) {
29 return false;
32 bool MockExtensionSpecialStoragePolicy::HasSessionOnlyOrigins() {
33 return false;
36 MockExtensionSpecialStoragePolicy::~MockExtensionSpecialStoragePolicy() {}