| 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 COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 13 #include "base/task/cancelable_task_tracker.h" | 13 #include "base/task/cancelable_task_tracker.h" |
| 14 #include "components/history/core/browser/history_types.h" | 14 #include "components/history/core/browser/history_types.h" |
| 15 #include "components/history/core/browser/top_sites_observer.h" | 15 #include "components/history/core/browser/top_sites_observer.h" |
| 16 #include "components/history/core/common/thumbnail_score.h" | 16 #include "components/history/core/common/thumbnail_score.h" |
| 17 #include "components/keyed_service/core/refcounted_keyed_service.h" | 17 #include "components/keyed_service/core/refcounted_keyed_service.h" |
| 18 #include "third_party/skia/include/core/SkColor.h" | 18 #include "third_party/skia/include/core/SkColor.h" |
| 19 #include "ui/gfx/image/image.h" | 19 #include "ui/gfx/image/image.h" |
| 20 | 20 |
| 21 class GURL; | 21 class GURL; |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class FilePath; | |
| 25 class RefCountedBytes; | |
| 26 class RefCountedMemory; | 24 class RefCountedMemory; |
| 27 } | 25 } |
| 28 | 26 |
| 29 namespace history { | 27 namespace history { |
| 30 | 28 |
| 31 class TopSitesCache; | |
| 32 class TopSitesObserver; | 29 class TopSitesObserver; |
| 33 | 30 |
| 34 // PrepopulatedPage stores information for prepopulated page for the | 31 // PrepopulatedPage stores information for prepopulated page for the |
| 35 // initial run. | 32 // initial run. |
| 36 struct PrepopulatedPage { | 33 struct PrepopulatedPage { |
| 37 PrepopulatedPage(); | 34 PrepopulatedPage(); |
| 38 PrepopulatedPage(const GURL& url, | 35 PrepopulatedPage(const GURL& url, |
| 39 const base::string16& title, | 36 const base::string16& title, |
| 40 int favicon_id, | 37 int favicon_id, |
| 41 int thumbnail_id, | 38 int thumbnail_id, |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 friend class base::RefCountedThreadSafe<TopSites>; | 182 friend class base::RefCountedThreadSafe<TopSites>; |
| 186 | 183 |
| 187 base::ObserverList<TopSitesObserver, true> observer_list_; | 184 base::ObserverList<TopSitesObserver, true> observer_list_; |
| 188 | 185 |
| 189 DISALLOW_COPY_AND_ASSIGN(TopSites); | 186 DISALLOW_COPY_AND_ASSIGN(TopSites); |
| 190 }; | 187 }; |
| 191 | 188 |
| 192 } // namespace history | 189 } // namespace history |
| 193 | 190 |
| 194 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_H_ | 191 #endif // COMPONENTS_HISTORY_CORE_BROWSER_TOP_SITES_H_ |
| OLD | NEW |