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

Side by Side Diff: chrome/browser/ntp_snippets/content_suggestions_notifier_service_factory.h

Issue 2606753002: Post notification after fetching articles (Closed)
Patch Set: override Created 3 years, 12 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_NTP_SNIPPETS_CONTENT_SUGGESTIONS_NOTIFIER_SERVICE_FACTORY _H_
6 #define CHROME_BROWSER_NTP_SNIPPETS_CONTENT_SUGGESTIONS_NOTIFIER_SERVICE_FACTORY _H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "base/memory/singleton.h"
12 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
13
14 class Profile;
15 class ContentSuggestionsNotifierService;
16
17 class ContentSuggestionsNotifierServiceFactory
18 : public BrowserContextKeyedServiceFactory {
19 public:
20 static ContentSuggestionsNotifierServiceFactory* GetInstance();
21 static ContentSuggestionsNotifierService* GetForProfile(Profile* profile);
22 static ContentSuggestionsNotifierService* GetForProfileIfExists(
23 Profile* profile);
24
25 private:
26 friend struct base::DefaultSingletonTraits<
27 ContentSuggestionsNotifierServiceFactory>;
28
29 ContentSuggestionsNotifierServiceFactory();
30 ~ContentSuggestionsNotifierServiceFactory() override;
31
32 // BrowserContextKeyedServiceFactory implementation.
33 KeyedService* BuildServiceInstanceFor(
34 content::BrowserContext* context) const override;
35
36 DISALLOW_COPY_AND_ASSIGN(ContentSuggestionsNotifierServiceFactory);
37 };
38
39 #endif // CHROME_BROWSER_NTP_SNIPPETS_CONTENT_SUGGESTIONS_NOTIFIER_SERVICE_FACT ORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698