| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef WEBKIT_BROWSER_QUOTA_MOCK_SPECIAL_STORAGE_POLICY_H_ | 5 #ifndef WEBKIT_BROWSER_QUOTA_MOCK_SPECIAL_STORAGE_POLICY_H_ |
| 6 #define WEBKIT_BROWSER_QUOTA_MOCK_SPECIAL_STORAGE_POLICY_H_ | 6 #define WEBKIT_BROWSER_QUOTA_MOCK_SPECIAL_STORAGE_POLICY_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "googleurl/src/gurl.h" | 11 #include "url/gurl.h" |
| 12 #include "webkit/browser/quota/special_storage_policy.h" | 12 #include "webkit/browser/quota/special_storage_policy.h" |
| 13 | 13 |
| 14 namespace quota { | 14 namespace quota { |
| 15 | 15 |
| 16 class MockSpecialStoragePolicy : public quota::SpecialStoragePolicy { | 16 class MockSpecialStoragePolicy : public quota::SpecialStoragePolicy { |
| 17 public: | 17 public: |
| 18 MockSpecialStoragePolicy(); | 18 MockSpecialStoragePolicy(); |
| 19 | 19 |
| 20 virtual bool IsStorageProtected(const GURL& origin) OVERRIDE; | 20 virtual bool IsStorageProtected(const GURL& origin) OVERRIDE; |
| 21 virtual bool IsStorageUnlimited(const GURL& origin) OVERRIDE; | 21 virtual bool IsStorageUnlimited(const GURL& origin) OVERRIDE; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 std::set<GURL> session_only_; | 92 std::set<GURL> session_only_; |
| 93 std::set<GURL> can_query_disk_size_; | 93 std::set<GURL> can_query_disk_size_; |
| 94 std::set<GURL> isolated_; | 94 std::set<GURL> isolated_; |
| 95 std::set<std::string> file_handlers_; | 95 std::set<std::string> file_handlers_; |
| 96 | 96 |
| 97 bool all_unlimited_; | 97 bool all_unlimited_; |
| 98 }; | 98 }; |
| 99 } // namespace quota | 99 } // namespace quota |
| 100 | 100 |
| 101 #endif // WEBKIT_BROWSER_QUOTA_MOCK_SPECIAL_STORAGE_POLICY_H_ | 101 #endif // WEBKIT_BROWSER_QUOTA_MOCK_SPECIAL_STORAGE_POLICY_H_ |
| OLD | NEW |