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

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

Issue 2149453004: Implement first version of OfflinePageSuggestionsProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove separate build target for offline_page_suggestions Created 4 years, 5 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_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_FACTORY_H_
6 #define CHROME_BROWSER_ANDROID_NTP_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_FACTORY_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
12
13 class Profile;
14
15 namespace base {
16 template <typename T>
17 struct DefaultSingletonTraits;
18 } // namespace base
19
20 namespace ntp_snippets {
21 class ContentSuggestionsService;
22 class OfflinePageSuggestionsProvider;
23 } // namespace ntp_snippets
24
25 class OfflinePageSuggestionsProviderFactory
26 : public BrowserContextKeyedServiceFactory {
27 public:
28 static OfflinePageSuggestionsProviderFactory* GetInstance();
29 static ntp_snippets::OfflinePageSuggestionsProvider* GetForProfile(
30 Profile* profile);
31
32 private:
33 friend struct base::DefaultSingletonTraits<
34 OfflinePageSuggestionsProviderFactory>;
35
36 OfflinePageSuggestionsProviderFactory();
37 ~OfflinePageSuggestionsProviderFactory() override;
38
39 // BrowserContextKeyedServiceFactory implementation.
40 KeyedService* BuildServiceInstanceFor(
41 content::BrowserContext* context) const override;
42
43 DISALLOW_COPY_AND_ASSIGN(OfflinePageSuggestionsProviderFactory);
44 };
45
46 #endif // CHROME_BROWSER_ANDROID_NTP_OFFLINE_PAGE_SUGGESTIONS_PROVIDER_FACTORY_ H_
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_feature_list.cc ('k') | chrome/browser/android/ntp/offline_page_suggestions_provider_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698