Index: components/ntp_snippets/breaking_news/subscription_manager.h |
diff --git a/components/ntp_snippets/breaking_news/subscription_manager.h b/components/ntp_snippets/breaking_news/subscription_manager.h |
index e30447d36432ebff63177ffedfe4fb33f977c0d2..f6fdf5a4bb50df655dbb78fea8acff5c17e8a2d8 100644 |
--- a/components/ntp_snippets/breaking_news/subscription_manager.h |
+++ b/components/ntp_snippets/breaking_news/subscription_manager.h |
@@ -19,7 +19,8 @@ class SubscriptionManager { |
SubscriptionManager( |
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, |
PrefService* pref_service, |
- const GURL& subscribe_url); |
+ const GURL& subscribe_url, |
+ const GURL& unsubscribe_url); |
~SubscriptionManager(); |
@@ -30,18 +31,22 @@ class SubscriptionManager { |
private: |
std::string subscription_token_; |
+ std::string unsubscription_token_; |
// Holds the URL request context. |
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |
std::unique_ptr<internal::SubscriptionJsonRequest> subscription_request_; |
+ std::unique_ptr<internal::SubscriptionJsonRequest> unsubscription_request_; |
PrefService* pref_service_; |
- // API endpoint for subscribing. |
+ // API endpoint for subscribing and unsubscribing. |
const GURL subscribe_url_; |
+ const GURL unsubscribe_url_; |
void DidSubscribe(const ntp_snippets::Status& status); |
+ void DidUnsubscribe(const ntp_snippets::Status& status); |
DISALLOW_COPY_AND_ASSIGN(SubscriptionManager); |
}; |