OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_NTP_CONTENT_SUGGESTIONS_NOTIFIER_SERVICE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_NTP_CONTENT_SUGGESTIONS_NOTIFIER_SERVICE_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "components/keyed_service/core/keyed_service.h" |
| 12 |
| 13 class PrefService; |
| 14 class Profile; |
| 15 |
| 16 namespace ntp_snippets { |
| 17 class ContentSuggestionsService; |
| 18 } // namespace ntp_snippets |
| 19 |
| 20 namespace user_prefs { |
| 21 class PrefRegistrySyncable; |
| 22 } // namespace user_prefs |
| 23 |
| 24 class ContentSuggestionsNotifierService : public KeyedService { |
| 25 public: |
| 26 ContentSuggestionsNotifierService( |
| 27 Profile* profile, |
| 28 ntp_snippets::ContentSuggestionsService* suggestions, |
| 29 PrefService* prefs); |
| 30 |
| 31 ~ContentSuggestionsNotifierService() override; |
| 32 |
| 33 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 34 |
| 35 private: |
| 36 class NotifyingObserver; |
| 37 std::unique_ptr<NotifyingObserver> observer_; |
| 38 |
| 39 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSuggestionsNotifierService); |
| 40 }; |
| 41 |
| 42 #endif // CHROME_BROWSER_ANDROID_NTP_CONTENT_SUGGESTIONS_NOTIFIER_SERVICE_H_ |
OLD | NEW |