OLD | NEW |
1 // Copyright 2014 The Chromium 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 "components/proximity_auth/wire_message.h" | 5 #include "components/proximity_auth/wire_message.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <limits> | 10 #include <limits> |
8 | 11 |
9 #include "base/base64url.h" | 12 #include "base/base64url.h" |
10 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
11 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
12 #include "base/macros.h" | 15 #include "base/macros.h" |
13 #include "base/values.h" | 16 #include "base/values.h" |
14 #include "components/proximity_auth/logging/logging.h" | 17 #include "components/proximity_auth/logging/logging.h" |
15 | 18 |
16 // The wire messages have a simple format: | 19 // The wire messages have a simple format: |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } | 162 } |
160 | 163 |
161 WireMessage::WireMessage(const std::string& payload) | 164 WireMessage::WireMessage(const std::string& payload) |
162 : WireMessage(payload, std::string()) {} | 165 : WireMessage(payload, std::string()) {} |
163 | 166 |
164 WireMessage::WireMessage(const std::string& payload, | 167 WireMessage::WireMessage(const std::string& payload, |
165 const std::string& permit_id) | 168 const std::string& permit_id) |
166 : payload_(payload), permit_id_(permit_id) {} | 169 : payload_(payload), permit_id_(permit_id) {} |
167 | 170 |
168 } // namespace proximity_auth | 171 } // namespace proximity_auth |
OLD | NEW |