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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 #include <set> | 11 #include <set> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "content/public/browser/indexed_db_context.h" | 17 #include "content/public/browser/indexed_db_context.h" |
18 #include "content/public/browser/indexed_db_info.h" | 18 #include "content/public/browser/indexed_db_info.h" |
19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
20 | 20 |
21 class Profile; | |
22 | |
23 // BrowsingDataIndexedDBHelper is an interface for classes dealing with | 21 // BrowsingDataIndexedDBHelper is an interface for classes dealing with |
24 // aggregating and deleting browsing data stored in indexed databases. A | 22 // aggregating and deleting browsing data stored in indexed databases. A |
25 // client of this class need to call StartFetching from the UI thread to | 23 // client of this class need to call StartFetching from the UI thread to |
26 // initiate the flow, and it'll be notified by the callback in its UI thread at | 24 // initiate the flow, and it'll be notified by the callback in its UI thread at |
27 // some later point. | 25 // some later point. |
28 class BrowsingDataIndexedDBHelper | 26 class BrowsingDataIndexedDBHelper |
29 : public base::RefCountedThreadSafe<BrowsingDataIndexedDBHelper> { | 27 : public base::RefCountedThreadSafe<BrowsingDataIndexedDBHelper> { |
30 public: | 28 public: |
31 using FetchCallback = | 29 using FetchCallback = |
32 base::Callback<void(const std::list<content::IndexedDBInfo>&)>; | 30 base::Callback<void(const std::list<content::IndexedDBInfo>&)>; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 99 |
102 private: | 100 private: |
103 ~CannedBrowsingDataIndexedDBHelper() override; | 101 ~CannedBrowsingDataIndexedDBHelper() override; |
104 | 102 |
105 std::set<PendingIndexedDBInfo> pending_indexed_db_info_; | 103 std::set<PendingIndexedDBInfo> pending_indexed_db_info_; |
106 | 104 |
107 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataIndexedDBHelper); | 105 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataIndexedDBHelper); |
108 }; | 106 }; |
109 | 107 |
110 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_INDEXED_DB_HELPER_H_ | 108 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_INDEXED_DB_HELPER_H_ |
OLD | NEW |