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_FILE_SYSTEM_HELPER_H_ | 5 #ifndef CHROME_BROWSER_MOCK_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ |
6 #define CHROME_BROWSER_MOCK_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ | 6 #define CHROME_BROWSER_MOCK_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 // Returns true if all filesystemss since the last Reset() invocation were | 42 // Returns true if all filesystemss since the last Reset() invocation were |
43 // deleted. | 43 // deleted. |
44 bool AllDeleted(); | 44 bool AllDeleted(); |
45 | 45 |
46 GURL last_deleted_origin_; | 46 GURL last_deleted_origin_; |
47 | 47 |
48 private: | 48 private: |
49 virtual ~MockBrowsingDataFileSystemHelper(); | 49 virtual ~MockBrowsingDataFileSystemHelper(); |
50 | 50 |
51 Profile* profile_; | |
52 | |
53 base::Callback<void(const std::list<FileSystemInfo>&)> callback_; | 51 base::Callback<void(const std::list<FileSystemInfo>&)> callback_; |
54 | 52 |
55 // Stores which filesystems exist. | 53 // Stores which filesystems exist. |
56 std::map<const std::string, bool> file_systems_; | 54 std::map<const std::string, bool> file_systems_; |
57 | 55 |
58 std::list<FileSystemInfo> response_; | 56 std::list<FileSystemInfo> response_; |
59 }; | 57 }; |
60 | 58 |
61 #endif // CHROME_BROWSER_MOCK_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ | 59 #endif // CHROME_BROWSER_MOCK_BROWSING_DATA_FILE_SYSTEM_HELPER_H_ |
OLD | NEW |