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 f6fdf5a4bb50df655dbb78fea8acff5c17e8a2d8..d95676204b8595bb028cb107eced4e396207f192 100644 |
--- a/components/ntp_snippets/breaking_news/subscription_manager.h |
+++ b/components/ntp_snippets/breaking_news/subscription_manager.h |
@@ -7,6 +7,7 @@ |
#include "components/ntp_snippets/breaking_news/subscription_json_request.h" |
#include "components/prefs/pref_registry_simple.h" |
+#include "components/version_info/version_info.h" |
#include "net/url_request/url_request_context_getter.h" |
#include "url/gurl.h" |
@@ -14,6 +15,14 @@ class PrefRegistrySimple; |
namespace ntp_snippets { |
+// Returns the appropriate API endpoint for subscribing for push updates, in |
+// consideration of the channel and variation parameters. |
+GURL GetPushUpdatesSubscriptionEndpoint(version_info::Channel channel); |
+ |
+// Returns the appropriate API endpoint for unsubscribing for push updates, in |
+// consideration of the channel and variation parameters. |
+GURL GetPushUpdatesUnsubscriptionEndpoint(version_info::Channel channel); |
+ |
class SubscriptionManager { |
public: |
SubscriptionManager( |