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

Side by Side Diff: chrome/browser/extensions/mock_extension_special_storage_policy.cc

Issue 10826270: QuotaManager: Return the remaining free disk space as quota. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/mock_extension_special_storage_policy.h" 5 #include "chrome/browser/extensions/mock_extension_special_storage_policy.h"
6 6
7 MockExtensionSpecialStoragePolicy::MockExtensionSpecialStoragePolicy() 7 MockExtensionSpecialStoragePolicy::MockExtensionSpecialStoragePolicy()
8 : ExtensionSpecialStoragePolicy(NULL) {} 8 : ExtensionSpecialStoragePolicy(NULL) {}
9 9
10 bool MockExtensionSpecialStoragePolicy::IsStorageProtected(const GURL& origin) { 10 bool MockExtensionSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
11 return protected_.find(origin) != protected_.end(); 11 return protected_.find(origin) != protected_.end();
12 } 12 }
13 13
14 bool MockExtensionSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) { 14 bool MockExtensionSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
15 return unlimited_.find(origin) != unlimited_.end(); 15 return false;
16 } 16 }
17 17
18 bool MockExtensionSpecialStoragePolicy::IsStorageSessionOnly( 18 bool MockExtensionSpecialStoragePolicy::IsStorageSessionOnly(
19 const GURL& origin) { 19 const GURL& origin) {
20 return session_only_.find(origin) != session_only_.end(); 20 return false;
21 }
22
23 bool MockExtensionSpecialStoragePolicy::IsInstalledApp(const GURL& origin) {
24 return false;
21 } 25 }
22 26
23 bool MockExtensionSpecialStoragePolicy::IsFileHandler( 27 bool MockExtensionSpecialStoragePolicy::IsFileHandler(
24 const std::string& extension_id) { 28 const std::string& extension_id) {
25 return file_handlers_.find(extension_id) != file_handlers_.end(); 29 return false;
26 } 30 }
27 31
28 bool MockExtensionSpecialStoragePolicy::HasSessionOnlyOrigins() { 32 bool MockExtensionSpecialStoragePolicy::HasSessionOnlyOrigins() {
29 return !session_only_.empty(); 33 return false;
30 } 34 }
31 35
32 MockExtensionSpecialStoragePolicy::~MockExtensionSpecialStoragePolicy() {} 36 MockExtensionSpecialStoragePolicy::~MockExtensionSpecialStoragePolicy() {}
OLDNEW
« no previous file with comments | « chrome/browser/extensions/mock_extension_special_storage_policy.h ('k') | webkit/quota/mock_special_storage_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698