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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 virtual void StartFetching( |
138 const base::Callback<void(const std::list<DatabaseInfo>&)>& callback) | 138 const base::Callback<void(const std::list<DatabaseInfo>&)>& callback) |
139 OVERRIDE; | 139 override; |
140 virtual void DeleteDatabase(const std::string& origin_identifier, | 140 virtual void DeleteDatabase(const std::string& origin_identifier, |
141 const std::string& name) OVERRIDE; | 141 const std::string& name) override; |
142 | 142 |
143 private: | 143 private: |
144 virtual ~CannedBrowsingDataDatabaseHelper(); | 144 virtual ~CannedBrowsingDataDatabaseHelper(); |
145 | 145 |
146 std::set<PendingDatabaseInfo> pending_database_info_; | 146 std::set<PendingDatabaseInfo> pending_database_info_; |
147 | 147 |
148 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataDatabaseHelper); | 148 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataDatabaseHelper); |
149 }; | 149 }; |
150 | 150 |
151 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_DATABASE_HELPER_H_ | 151 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_DATABASE_HELPER_H_ |
OLD | NEW |