OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ANDROID_MOST_VISITED_SITES_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ |
6 #define CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ | 6 #define CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <stddef.h> |
9 | 10 |
10 #include <string> | 11 #include <string> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "base/android/scoped_java_ref.h" | 14 #include "base/android/scoped_java_ref.h" |
14 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/macros.h" |
15 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
17 #include "base/scoped_observer.h" | 19 #include "base/scoped_observer.h" |
18 #include "components/history/core/browser/history_types.h" | 20 #include "components/history/core/browser/history_types.h" |
19 #include "components/history/core/browser/top_sites_observer.h" | 21 #include "components/history/core/browser/top_sites_observer.h" |
20 #include "components/suggestions/proto/suggestions.pb.h" | 22 #include "components/suggestions/proto/suggestions.pb.h" |
21 #include "components/sync_driver/sync_service_observer.h" | 23 #include "components/sync_driver/sync_service_observer.h" |
22 #include "url/gurl.h" | 24 #include "url/gurl.h" |
23 | 25 |
24 namespace suggestions { | 26 namespace suggestions { |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 215 |
214 ScopedVector<Suggestion> current_suggestions_; | 216 ScopedVector<Suggestion> current_suggestions_; |
215 | 217 |
216 // For callbacks may be run after destruction. | 218 // For callbacks may be run after destruction. |
217 base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_; | 219 base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_; |
218 | 220 |
219 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); | 221 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); |
220 }; | 222 }; |
221 | 223 |
222 #endif // CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ | 224 #endif // CHROME_BROWSER_ANDROID_MOST_VISITED_SITES_H_ |
OLD | NEW |