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_INDEXED_DB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_INDEXED_DB_HELPER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_INDEXED_DB_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_INDEXED_DB_HELPER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 bool empty() const; | 108 bool empty() const; |
109 | 109 |
110 // Returns the number of currently stored indexed databases. | 110 // Returns the number of currently stored indexed databases. |
111 size_t GetIndexedDBCount() const; | 111 size_t GetIndexedDBCount() const; |
112 | 112 |
113 // Returns the current list of indexed data bases. | 113 // Returns the current list of indexed data bases. |
114 const std::set<CannedBrowsingDataIndexedDBHelper::PendingIndexedDBInfo>& | 114 const std::set<CannedBrowsingDataIndexedDBHelper::PendingIndexedDBInfo>& |
115 GetIndexedDBInfo() const; | 115 GetIndexedDBInfo() const; |
116 | 116 |
117 // BrowsingDataIndexedDBHelper methods. | 117 // BrowsingDataIndexedDBHelper methods. |
118 virtual void StartFetching( | 118 void StartFetching(const base::Callback< |
119 const base::Callback<void(const std::list<content::IndexedDBInfo>&)>& | 119 void(const std::list<content::IndexedDBInfo>&)>& callback) override; |
120 callback) override; | 120 void DeleteIndexedDB(const GURL& origin) override; |
121 virtual void DeleteIndexedDB(const GURL& origin) override; | |
122 | 121 |
123 private: | 122 private: |
124 virtual ~CannedBrowsingDataIndexedDBHelper(); | 123 ~CannedBrowsingDataIndexedDBHelper() override; |
125 | 124 |
126 std::set<PendingIndexedDBInfo> pending_indexed_db_info_; | 125 std::set<PendingIndexedDBInfo> pending_indexed_db_info_; |
127 | 126 |
128 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataIndexedDBHelper); | 127 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataIndexedDBHelper); |
129 }; | 128 }; |
130 | 129 |
131 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_INDEXED_DB_HELPER_H_ | 130 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_INDEXED_DB_HELPER_H_ |
OLD | NEW |