| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_MOCK_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_MOCK_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ |
| 6 #define CHROME_BROWSER_MOCK_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ | 6 #define CHROME_BROWSER_MOCK_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // Returns true if all local storage files were deleted since the last Reset() | 39 // Returns true if all local storage files were deleted since the last Reset() |
| 40 // invocation. | 40 // invocation. |
| 41 bool AllDeleted(); | 41 bool AllDeleted(); |
| 42 | 42 |
| 43 GURL last_deleted_origin_; | 43 GURL last_deleted_origin_; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 virtual ~MockBrowsingDataLocalStorageHelper(); | 46 virtual ~MockBrowsingDataLocalStorageHelper(); |
| 47 | 47 |
| 48 Profile* profile_; | |
| 49 | |
| 50 base::Callback<void(const std::list<LocalStorageInfo>&)> callback_; | 48 base::Callback<void(const std::list<LocalStorageInfo>&)> callback_; |
| 51 | 49 |
| 52 std::map<const GURL, bool> origins_; | 50 std::map<const GURL, bool> origins_; |
| 53 | 51 |
| 54 std::list<LocalStorageInfo> response_; | 52 std::list<LocalStorageInfo> response_; |
| 55 }; | 53 }; |
| 56 | 54 |
| 57 #endif // CHROME_BROWSER_MOCK_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ | 55 #endif // CHROME_BROWSER_MOCK_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ |
| OLD | NEW |