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_DATABASE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_MOCK_BROWSING_DATA_DATABASE_HELPER_H_ |
6 #define CHROME_BROWSER_MOCK_BROWSING_DATA_DATABASE_HELPER_H_ | 6 #define CHROME_BROWSER_MOCK_BROWSING_DATA_DATABASE_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 28 matching lines...) Expand all Loading... |
39 // deleted. | 39 // deleted. |
40 bool AllDeleted(); | 40 bool AllDeleted(); |
41 | 41 |
42 std::string last_deleted_origin_; | 42 std::string last_deleted_origin_; |
43 | 43 |
44 std::string last_deleted_db_; | 44 std::string last_deleted_db_; |
45 | 45 |
46 private: | 46 private: |
47 virtual ~MockBrowsingDataDatabaseHelper(); | 47 virtual ~MockBrowsingDataDatabaseHelper(); |
48 | 48 |
49 Profile* profile_; | |
50 | |
51 base::Callback<void(const std::list<DatabaseInfo>&)> callback_; | 49 base::Callback<void(const std::list<DatabaseInfo>&)> callback_; |
52 | 50 |
53 // Stores which databases exist. | 51 // Stores which databases exist. |
54 std::map<const std::string, bool> databases_; | 52 std::map<const std::string, bool> databases_; |
55 | 53 |
56 std::list<DatabaseInfo> response_; | 54 std::list<DatabaseInfo> response_; |
57 }; | 55 }; |
58 | 56 |
59 #endif // CHROME_BROWSER_MOCK_BROWSING_DATA_DATABASE_HELPER_H_ | 57 #endif // CHROME_BROWSER_MOCK_BROWSING_DATA_DATABASE_HELPER_H_ |
OLD | NEW |