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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // True if no databases are currently stored. | 127 // True if no databases are currently stored. |
128 bool empty() const; | 128 bool empty() const; |
129 | 129 |
130 // Returns the number of currently stored databases. | 130 // Returns the number of currently stored databases. |
131 size_t GetDatabaseCount() const; | 131 size_t GetDatabaseCount() const; |
132 | 132 |
133 // Returns the current list of web databases. | 133 // Returns the current list of web databases. |
134 const std::set<PendingDatabaseInfo>& GetPendingDatabaseInfo(); | 134 const std::set<PendingDatabaseInfo>& GetPendingDatabaseInfo(); |
135 | 135 |
136 // BrowsingDataDatabaseHelper implementation. | 136 // BrowsingDataDatabaseHelper implementation. |
137 virtual void StartFetching( | 137 void StartFetching(const base::Callback<void(const std::list<DatabaseInfo>&)>& |
138 const base::Callback<void(const std::list<DatabaseInfo>&)>& callback) | 138 callback) override; |
139 override; | 139 void DeleteDatabase(const std::string& origin_identifier, |
140 virtual void DeleteDatabase(const std::string& origin_identifier, | 140 const std::string& name) override; |
141 const std::string& name) override; | |
142 | 141 |
143 private: | 142 private: |
144 virtual ~CannedBrowsingDataDatabaseHelper(); | 143 ~CannedBrowsingDataDatabaseHelper() override; |
145 | 144 |
146 std::set<PendingDatabaseInfo> pending_database_info_; | 145 std::set<PendingDatabaseInfo> pending_database_info_; |
147 | 146 |
148 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataDatabaseHelper); | 147 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataDatabaseHelper); |
149 }; | 148 }; |
150 | 149 |
151 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_DATABASE_HELPER_H_ | 150 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_DATABASE_HELPER_H_ |
OLD | NEW |