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_BROWSING_DATA_BROWSING_DATA_DATABASE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_DATABASE_HELPER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_DATABASE_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_DATABASE_HELPER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // Returns the number of currently stored databases. | 135 // Returns the number of currently stored databases. |
136 size_t GetDatabaseCount() const; | 136 size_t GetDatabaseCount() const; |
137 | 137 |
138 // Returns the current list of web databases. | 138 // Returns the current list of web databases. |
139 const std::set<PendingDatabaseInfo>& GetPendingDatabaseInfo(); | 139 const std::set<PendingDatabaseInfo>& GetPendingDatabaseInfo(); |
140 | 140 |
141 // BrowsingDataDatabaseHelper implementation. | 141 // BrowsingDataDatabaseHelper implementation. |
142 virtual void StartFetching( | 142 virtual void StartFetching( |
143 const base::Callback<void(const std::list<DatabaseInfo>&)>& callback) | 143 const base::Callback<void(const std::list<DatabaseInfo>&)>& callback) |
144 OVERRIDE; | 144 OVERRIDE; |
| 145 virtual void DeleteDatabase(const std::string& origin_identifier, |
| 146 const std::string& name) OVERRIDE; |
145 | 147 |
146 private: | 148 private: |
147 virtual ~CannedBrowsingDataDatabaseHelper(); | 149 virtual ~CannedBrowsingDataDatabaseHelper(); |
148 | 150 |
149 std::set<PendingDatabaseInfo> pending_database_info_; | 151 std::set<PendingDatabaseInfo> pending_database_info_; |
150 | 152 |
151 Profile* profile_; | 153 Profile* profile_; |
152 | 154 |
153 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataDatabaseHelper); | 155 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataDatabaseHelper); |
154 }; | 156 }; |
155 | 157 |
156 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_DATABASE_HELPER_H_ | 158 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_DATABASE_HELPER_H_ |
OLD | NEW |