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

Unified Diff: sync/notifier/gcm_network_channel.h

Issue 182333003: Build correct URL for cacheinvalidation endpoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RollCacheInvalidations
Patch Set: fix build Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sync/notifier/gcm_network_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/gcm_network_channel.h
diff --git a/sync/notifier/gcm_network_channel.h b/sync/notifier/gcm_network_channel.h
index 0dd64eeaa65c1b1fcea4c26ab4950961e4e5b8d8..4b50dc97a14e9cdac23caa67428623dc4606fbeb 100644
--- a/sync/notifier/gcm_network_channel.h
+++ b/sync/notifier/gcm_network_channel.h
@@ -49,14 +49,22 @@ class SYNC_EXPORT_PRIVATE GCMNetworkChannel
void ResetRegisterBackoffEntryForTest(
const net::BackoffEntry::Policy* policy);
+ virtual GURL BuildUrl(const std::string& registration_id);
+
private:
+ friend class GCMNetworkChannelTest;
void Register();
void OnRegisterComplete(const std::string& registration_id,
gcm::GCMClient::Result result);
void RequestAccessToken();
void OnGetTokenComplete(const GoogleServiceAuthError& error,
const std::string& token);
- GURL BuildUrl();
+ // Base64 encoding/decoding with URL safe alphabet.
+ // http://tools.ietf.org/html/rfc4648#page-7
+ static void Base64EncodeURLSafe(const std::string& input,
+ std::string* output);
+ static bool Base64DecodeURLSafe(const std::string& input,
+ std::string* output);
scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
scoped_ptr<GCMNetworkChannelDelegate> delegate_;
« no previous file with comments | « no previous file | sync/notifier/gcm_network_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698