root/chrome/browser/extensions/mock_extension_special_storage_policy.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. IsStorageProtected
  2. IsStorageUnlimited
  3. IsStorageSessionOnly
  4. CanQueryDiskSize
  5. IsFileHandler
  6. HasSessionOnlyOrigins

// Copyright (c) 2012 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 "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() {}

/* [<][>][^][v][top][bottom][index][help] */