| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HISTORY_TOP_SITES_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_BACKEND_H_ |
| 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_BACKEND_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "chrome/browser/cancelable_request.h" | 12 #include "chrome/browser/common/cancelable_request.h" |
| 13 #include "chrome/browser/history/history_types.h" | 13 #include "chrome/browser/history/history_types.h" |
| 14 | 14 |
| 15 class FilePath; | 15 class FilePath; |
| 16 | 16 |
| 17 namespace history { | 17 namespace history { |
| 18 | 18 |
| 19 class TopSitesDatabase; | 19 class TopSitesDatabase; |
| 20 | 20 |
| 21 // Service used by TopSites to have db interaction happen on the DB thread. All | 21 // Service used by TopSites to have db interaction happen on the DB thread. All |
| 22 // public methods are invoked on the ui thread and get funneled to the DB | 22 // public methods are invoked on the ui thread and get funneled to the DB |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 FilePath db_path_; | 99 FilePath db_path_; |
| 100 | 100 |
| 101 scoped_ptr<TopSitesDatabase> db_; | 101 scoped_ptr<TopSitesDatabase> db_; |
| 102 | 102 |
| 103 DISALLOW_COPY_AND_ASSIGN(TopSitesBackend); | 103 DISALLOW_COPY_AND_ASSIGN(TopSitesBackend); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace history | 106 } // namespace history |
| 107 | 107 |
| 108 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_BACKEND_H_ | 108 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_BACKEND_H_ |
| OLD | NEW |