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

Unified Diff: google_apis/gcm/engine/registration_request.h

Issue 183923006: [GCM] API update to allow only a single sender in registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates based on CR. Changing how the senders/reg_ids are stored to avoid upgrade to multiple sedne… Created 6 years, 10 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
Index: google_apis/gcm/engine/registration_request.h
diff --git a/google_apis/gcm/engine/registration_request.h b/google_apis/gcm/engine/registration_request.h
index c5aff57fbafec2e1e565d7c7e28e8fa2d3315e73..28b999a72ef9986cd28eaaeca2b2d41ad59ea321 100644
--- a/google_apis/gcm/engine/registration_request.h
+++ b/google_apis/gcm/engine/registration_request.h
@@ -5,9 +5,6 @@
#ifndef GOOGLE_APIS_GCM_ENGINE_REGISTRATION_REQUEST_H_
#define GOOGLE_APIS_GCM_ENGINE_REGISTRATION_REQUEST_H_
-#include <map>
-#include <vector>
-
#include "base/basictypes.h"
#include "base/callback.h"
#include "base/memory/ref_counted.h"
@@ -63,7 +60,7 @@ class GCM_EXPORT RegistrationRequest : public net::URLFetcherDelegate {
uint64 security_token,
const std::string& app_id,
const std::string& cert,
- const std::vector<std::string>& sender_ids);
+ const std::string& sender_id);
~RequestInfo();
// Android ID of the device.
@@ -74,8 +71,8 @@ class GCM_EXPORT RegistrationRequest : public net::URLFetcherDelegate {
std::string app_id;
// Certificate of the application.
std::string cert;
- // List of IDs of senders. Allowed up to 100.
- std::vector<std::string> sender_ids;
+ // A sender ID the registration is for.
+ std::string sender_id;
};
RegistrationRequest(

Powered by Google App Engine
This is Rietveld 408576698