| OLD | NEW |
| 1 // Copyright 2014 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "request.h" | 5 #include "request.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 namespace { | 9 namespace { |
| 10 | 10 |
| 11 // Creates a basic request with the mandatory fields. | 11 // Creates a basic request with the mandatory fields. |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 return request; | 182 return request; |
| 183 } | 183 } |
| 184 | 184 |
| 185 int64_t request::GetInt64FromString(const pp::VarDictionary& dictionary, | 185 int64_t request::GetInt64FromString(const pp::VarDictionary& dictionary, |
| 186 const std::string& request_key) { | 186 const std::string& request_key) { |
| 187 std::stringstream ss_int64(dictionary.Get(request_key).AsString()); | 187 std::stringstream ss_int64(dictionary.Get(request_key).AsString()); |
| 188 int64_t int64_value; | 188 int64_t int64_value; |
| 189 ss_int64 >> int64_value; | 189 ss_int64 >> int64_value; |
| 190 return int64_value; | 190 return int64_value; |
| 191 } | 191 } |
| OLD | NEW |