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

Side by Side Diff: components/proximity_auth/wire_message.cc

Issue 1063323002: Move base64url.* to CryptAuth component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cryptauth_refactor
Patch Set: rename path in chrome/browser/chromeos Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « components/proximity_auth/cryptauth/cryptauth_enrollment_utils.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "components/proximity_auth/base64url.h" 11 #include "components/proximity_auth/cryptauth/base64url.h"
12 12
13 // The wire messages have a simple format: 13 // The wire messages have a simple format:
14 // [ message version ] [ body length ] [ JSON body ] 14 // [ message version ] [ body length ] [ JSON body ]
15 // 1 byte 2 bytes body length 15 // 1 byte 2 bytes body length
16 // The JSON body contains two fields: an optional permit_id field and a required 16 // The JSON body contains two fields: an optional permit_id field and a required
17 // data field. 17 // data field.
18 18
19 namespace proximity_auth { 19 namespace proximity_auth {
20 namespace { 20 namespace {
21 21
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // TODO(isherman): Implement. 115 // TODO(isherman): Implement.
116 return "This method is not yet implemented."; 116 return "This method is not yet implemented.";
117 } 117 }
118 118
119 WireMessage::WireMessage(const std::string& permit_id, 119 WireMessage::WireMessage(const std::string& permit_id,
120 const std::string& payload) 120 const std::string& payload)
121 : permit_id_(permit_id), payload_(payload) { 121 : permit_id_(permit_id), payload_(payload) {
122 } 122 }
123 123
124 } // namespace proximity_auth 124 } // namespace proximity_auth
OLDNEW
« no previous file with comments | « components/proximity_auth/cryptauth/cryptauth_enrollment_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698