Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |