| 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 COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_ | 5 #ifndef COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_ |
| 6 #define COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_ | 6 #define COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace user_prefs { | 38 namespace user_prefs { |
| 39 class PrefRegistrySyncable; | 39 class PrefRegistrySyncable; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace variations { | 42 namespace variations { |
| 43 class VariationsService; | 43 class VariationsService; |
| 44 } | 44 } |
| 45 | 45 |
| 46 namespace ntp_tiles { |
| 47 |
| 46 // Shim interface for SupervisedUserService. | 48 // Shim interface for SupervisedUserService. |
| 47 class MostVisitedSitesSupervisor { | 49 class MostVisitedSitesSupervisor { |
| 48 public: | 50 public: |
| 49 struct Whitelist { | 51 struct Whitelist { |
| 50 base::string16 title; | 52 base::string16 title; |
| 51 GURL entry_point; | 53 GURL entry_point; |
| 52 base::FilePath large_icon_path; | 54 base::FilePath large_icon_path; |
| 53 }; | 55 }; |
| 54 | 56 |
| 55 class Observer { | 57 class Observer { |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 base::ThreadChecker thread_checker_; | 281 base::ThreadChecker thread_checker_; |
| 280 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; | 282 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; |
| 281 scoped_refptr<base::TaskRunner> blocking_runner_; | 283 scoped_refptr<base::TaskRunner> blocking_runner_; |
| 282 | 284 |
| 283 // For callbacks may be run after destruction. | 285 // For callbacks may be run after destruction. |
| 284 base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_; | 286 base::WeakPtrFactory<MostVisitedSites> weak_ptr_factory_; |
| 285 | 287 |
| 286 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); | 288 DISALLOW_COPY_AND_ASSIGN(MostVisitedSites); |
| 287 }; | 289 }; |
| 288 | 290 |
| 291 } // namespace ntp_tiles |
| 292 |
| 289 #endif // COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_ | 293 #endif // COMPONENTS_NTP_TILES_MOST_VISITED_SITES_H_ |
| OLD | NEW |