Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Unified Diff: webkit/browser/quota/mock_special_storage_policy.cc

Issue 259083002: Move mock_special_storage_policy from webkit/ to content/public/test/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/browser/quota/mock_special_storage_policy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/quota/mock_special_storage_policy.cc
diff --git a/webkit/browser/quota/mock_special_storage_policy.cc b/webkit/browser/quota/mock_special_storage_policy.cc
deleted file mode 100644
index 027a35d8ef37b45f6206bb3b8de1c56b39bad0ca..0000000000000000000000000000000000000000
--- a/webkit/browser/quota/mock_special_storage_policy.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2013 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 "webkit/browser/quota/mock_special_storage_policy.h"
-
-#include "base/stl_util.h"
-
-namespace quota {
-
-MockSpecialStoragePolicy::MockSpecialStoragePolicy()
- : all_unlimited_(false) {
-}
-
-bool MockSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
- return ContainsKey(protected_, origin);
-}
-
-bool MockSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
- if (all_unlimited_)
- return true;
- return ContainsKey(unlimited_, origin);
-}
-
-bool MockSpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) {
- return ContainsKey(session_only_, origin);
-}
-
-bool MockSpecialStoragePolicy::CanQueryDiskSize(const GURL& origin) {
- return ContainsKey(can_query_disk_size_, origin);
-}
-
-bool MockSpecialStoragePolicy::IsFileHandler(const std::string& extension_id) {
- return ContainsKey(file_handlers_, extension_id);
-}
-
-bool MockSpecialStoragePolicy::HasIsolatedStorage(const GURL& origin) {
- return ContainsKey(isolated_, origin);
-}
-
-bool MockSpecialStoragePolicy::HasSessionOnlyOrigins() {
- return !session_only_.empty();
-}
-
-MockSpecialStoragePolicy::~MockSpecialStoragePolicy() {}
-
-} // namespace quota
« no previous file with comments | « webkit/browser/quota/mock_special_storage_policy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698