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

Side by Side Diff: components/ntp_snippets/breaking_news/breaking_news_subscription_manager.h

Issue 2914263002: [NTP::Push] Adding Breaking News Subscription Manager (Closed)
Patch Set: Created 3 years, 6 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 2017 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 COMPONENTS_NTP_SNIPPETS_REMOTE_BREAKING_NEWS_SUBSCRIPTION_MANAGER_H_
6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_BREAKING_NEWS_SUBSCRIPTION_MANAGER_H_
7
8 #include "components/ntp_snippets/breaking_news/subscription_json_request.h"
9 #include "net/url_request/url_request_context_getter.h"
10 #include "url/gurl.h"
11
12 namespace ntp_snippets {
13 class BreakingNewsSubscriptionManager {
14 private:
fhorschig 2017/06/02 09:11:50 Please put private declarations below public ones.
mamir 2017/06/04 10:17:03 Done.
15 // Holds the URL request context.
16 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
17
18 // API endpoint for subscribing.
19 const GURL subscribe_url_;
20
21 public:
22 BreakingNewsSubscriptionManager(
23 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter);
24 void Subscribe(const std::string& token);
25 void Unsubscribe(const std::string& token);
26 void SubscribeDone(std::unique_ptr<internal::SubscriptionJsonRequest> request,
fhorschig 2017/06/02 09:11:50 I am pretty sure, this is going to be an implement
mamir 2017/06/04 10:17:03 Done.
27 const ntp_snippets::Status& status);
28 };
29 }
30 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_BREAKING_NEWS_SUBSCRIPTION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698