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

Unified Diff: webkit/quota/mock_special_storage_policy.cc

Issue 16010007: Move webkit/quota files to webkit/browser/quota or webkit/common/quota (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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/quota/mock_special_storage_policy.h ('k') | webkit/quota/mock_storage_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/quota/mock_special_storage_policy.cc
diff --git a/webkit/quota/mock_special_storage_policy.cc b/webkit/quota/mock_special_storage_policy.cc
deleted file mode 100644
index 5aaf21cbd6015f5f47afa5109072fd0e0d599659..0000000000000000000000000000000000000000
--- a/webkit/quota/mock_special_storage_policy.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// 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 "webkit/quota/mock_special_storage_policy.h"
-
-namespace quota {
-
-MockSpecialStoragePolicy::MockSpecialStoragePolicy()
- : all_unlimited_(false) {
-}
-
-bool MockSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
- return protected_.find(origin) != protected_.end();
-}
-
-bool MockSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
- if (all_unlimited_)
- return true;
- return unlimited_.find(origin) != unlimited_.end();
-}
-
-bool MockSpecialStoragePolicy::IsStorageSessionOnly(const GURL& origin) {
- return session_only_.find(origin) != session_only_.end();
-}
-
-bool MockSpecialStoragePolicy::CanQueryDiskSize(const GURL& origin) {
- return can_query_disk_size_.find(origin) != can_query_disk_size_.end();
-}
-
-bool MockSpecialStoragePolicy::IsFileHandler(const std::string& extension_id) {
- return file_handlers_.find(extension_id) != file_handlers_.end();
-}
-
-bool MockSpecialStoragePolicy::HasSessionOnlyOrigins() {
- return !session_only_.empty();
-}
-
-MockSpecialStoragePolicy::~MockSpecialStoragePolicy() {}
-
-} // namespace quota
« no previous file with comments | « webkit/quota/mock_special_storage_policy.h ('k') | webkit/quota/mock_storage_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698