| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 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. | |
| 4 | |
| 5 #include "chrome/browser/extensions/mock_extension_special_storage_policy.h" | |
| 6 | |
| 7 MockExtensionSpecialStoragePolicy::MockExtensionSpecialStoragePolicy() {} | |
| 8 MockExtensionSpecialStoragePolicy::~MockExtensionSpecialStoragePolicy() {} | |
| 9 | |
| 10 bool MockExtensionSpecialStoragePolicy::IsStorageProtected(const GURL& origin) { | |
| 11 return protected_.find(origin) != protected_.end(); | |
| 12 } | |
| 13 | |
| 14 bool MockExtensionSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) { | |
| 15 return unlimited_.find(origin) != unlimited_.end(); | |
| 16 } | |
| 17 | |
| 18 bool MockExtensionSpecialStoragePolicy::IsFileHandler( | |
| 19 const std::string& extension_id) { | |
| 20 return file_handlers_.find(extension_id) != file_handlers_.end(); | |
| 21 } | |
| OLD | NEW |