Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: chrome/browser/android/ntp/content_suggestions_notifier_service.h

Issue 2606753002: Post notification after fetching articles (Closed)
Patch Set: Add TODO. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698