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

Side by Side Diff: chrome/browser/offline_pages/prefetch/suggested_articles_observer.h

Issue 2864293003: [Offline Pages] Add a GCMAppHandler for offline page prefetch. (Closed)
Patch Set: Refactor to remove GCM dependency. Created 3 years, 7 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_OFFLINE_PAGES_CONTENT_SUGGESTED_ARTICLES_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_OFFLINE_PAGES_PREFETCH_SUGGESTED_ARTICLES_OBSERVER_H_
6 #define COMPONENTS_OFFLINE_PAGES_CONTENT_SUGGESTED_ARTICLES_OBSERVER_H_ 6 #define CHROME_BROWSER_OFFLINE_PAGES_PREFETCH_SUGGESTED_ARTICLES_OBSERVER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "components/ntp_snippets/content_suggestions_service.h" 12 #include "components/ntp_snippets/content_suggestions_service.h"
13 #include "components/offline_pages/core/prefetch/prefetch_service.h" 13 #include "components/offline_pages/core/prefetch/prefetch_service.h"
14 14
15 namespace content { 15 namespace content {
16 class BrowserContext; 16 class BrowserContext;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 content::BrowserContext* browser_context_; 70 content::BrowserContext* browser_context_;
71 ntp_snippets::CategoryStatus category_status_ = 71 ntp_snippets::CategoryStatus category_status_ =
72 ntp_snippets::CategoryStatus::INITIALIZING; 72 ntp_snippets::CategoryStatus::INITIALIZING;
73 std::unique_ptr<Delegate> delegate_; 73 std::unique_ptr<Delegate> delegate_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(SuggestedArticlesObserver); 75 DISALLOW_COPY_AND_ASSIGN(SuggestedArticlesObserver);
76 }; 76 };
77 77
78 } // namespace offline_pages 78 } // namespace offline_pages
79 79
80 #endif // COMPONENTS_OFFLINE_PAGES_CONTENT_SUGGESTED_ARTICLES_OBSERVER_H_ 80 #endif // CHROME_BROWSER_OFFLINE_PAGES_PREFETCH_SUGGESTED_ARTICLES_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698