| 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_DATABASE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_DATABASE_HELPER_H_ |
| 6 #define CHROME_BROWSER_BROWSING_DATA_DATABASE_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_DATABASE_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
| 17 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 19 #include "webkit/database/database_tracker.h" | 19 #include "webkit/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 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // Access to |pending_database_info_| is protected by |lock_| since it may | 159 // Access to |pending_database_info_| is protected by |lock_| since it may |
| 160 // be accessed on the UI or the WEBKIT thread. | 160 // be accessed on the UI or the WEBKIT thread. |
| 161 std::set<PendingDatabaseInfo> pending_database_info_; | 161 std::set<PendingDatabaseInfo> pending_database_info_; |
| 162 | 162 |
| 163 Profile* profile_; | 163 Profile* profile_; |
| 164 | 164 |
| 165 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataDatabaseHelper); | 165 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataDatabaseHelper); |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 #endif // CHROME_BROWSER_BROWSING_DATA_DATABASE_HELPER_H_ | 168 #endif // CHROME_BROWSER_BROWSING_DATA_DATABASE_HELPER_H_ |
| OLD | NEW |