OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "google_apis/gcm/engine/gcm_registration_request_handler.h" |
| 6 |
| 7 #include "google_apis/gcm/base/gcm_util.h" |
| 8 |
| 9 namespace gcm { |
| 10 |
| 11 namespace { |
| 12 |
| 13 // Request constants. |
| 14 const char kSenderKey[] = "sender"; |
| 15 |
| 16 } // namespace |
| 17 |
| 18 GCMRegistrationRequestHandler::GCMRegistrationRequestHandler( |
| 19 const std::string& senders) |
| 20 : senders_(senders) { |
| 21 } |
| 22 |
| 23 GCMRegistrationRequestHandler::~GCMRegistrationRequestHandler() {} |
| 24 |
| 25 void GCMRegistrationRequestHandler::BuildRequestBody(std::string* body){ |
| 26 BuildFormEncoding(kSenderKey, senders_, body); |
| 27 } |
| 28 |
| 29 } // namespace gcm |
OLD | NEW |