| 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> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
| 16 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
| 17 #include "storage/browser/database/database_tracker.h" |
| 17 #include "storage/common/database/database_identifier.h" | 18 #include "storage/common/database/database_identifier.h" |
| 18 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 19 #include "webkit/browser/database/database_tracker.h" | |
| 20 | 20 |
| 21 class Profile; | 21 class Profile; |
| 22 | 22 |
| 23 // This class fetches database information in the FILE thread, and notifies | 23 // This class fetches database information in the FILE thread, and notifies |
| 24 // the UI thread upon completion. | 24 // the UI thread upon completion. |
| 25 // A client of this class need to call StartFetching from the UI thread to | 25 // A 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 | 26 // initiate the flow, and it'll be notified by the callback in its UI |
| 27 // thread at some later point. | 27 // thread at some later point. |
| 28 class BrowsingDataDatabaseHelper | 28 class BrowsingDataDatabaseHelper |
| 29 : public base::RefCountedThreadSafe<BrowsingDataDatabaseHelper> { | 29 : public base::RefCountedThreadSafe<BrowsingDataDatabaseHelper> { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 virtual ~CannedBrowsingDataDatabaseHelper(); | 149 virtual ~CannedBrowsingDataDatabaseHelper(); |
| 150 | 150 |
| 151 std::set<PendingDatabaseInfo> pending_database_info_; | 151 std::set<PendingDatabaseInfo> pending_database_info_; |
| 152 | 152 |
| 153 Profile* profile_; | 153 Profile* profile_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataDatabaseHelper); | 155 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataDatabaseHelper); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_DATABASE_HELPER_H_ | 158 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_DATABASE_HELPER_H_ |
| OLD | NEW |