| Index: google_apis/gcm/engine/gcm_registration_request_handler.cc
|
| diff --git a/google_apis/gcm/engine/gcm_registration_request_handler.cc b/google_apis/gcm/engine/gcm_registration_request_handler.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c0213f3cb066a6ea2320a9753bbae40bba8f360d
|
| --- /dev/null
|
| +++ b/google_apis/gcm/engine/gcm_registration_request_handler.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "google_apis/gcm/engine/gcm_registration_request_handler.h"
|
| +
|
| +#include "google_apis/gcm/base/gcm_util.h"
|
| +
|
| +namespace gcm {
|
| +
|
| +namespace {
|
| +
|
| +// Request constants.
|
| +const char kSenderKey[] = "sender";
|
| +
|
| +} // namespace
|
| +
|
| +GCMRegistrationRequestHandler::GCMRegistrationRequestHandler(
|
| + const std::string& senders)
|
| + : senders_(senders) {
|
| +}
|
| +
|
| +GCMRegistrationRequestHandler::~GCMRegistrationRequestHandler() {}
|
| +
|
| +void GCMRegistrationRequestHandler::BuildRequestBody(std::string* body){
|
| + BuildFormEncoding(kSenderKey, senders_, body);
|
| +}
|
| +
|
| +} // namespace gcm
|
|
|