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

Side by Side Diff: content/common/bluetooth/web_bluetooth_device_id.cc

Issue 2506813003: Use new wrapper types for web_bluetooth.mojom (Closed)
Patch Set: merge master and resolve conflicts Created 4 years 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/common/bluetooth/web_bluetooth_device_id.h" 5 #include "content/common/bluetooth/web_bluetooth_device_id.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "crypto/random.h" 9 #include "crypto/random.h"
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool WebBluetoothDeviceId::operator==( 72 bool WebBluetoothDeviceId::operator==(
73 const WebBluetoothDeviceId& device_id) const { 73 const WebBluetoothDeviceId& device_id) const {
74 return str() == device_id.str(); 74 return str() == device_id.str();
75 } 75 }
76 76
77 bool WebBluetoothDeviceId::operator!=( 77 bool WebBluetoothDeviceId::operator!=(
78 const WebBluetoothDeviceId& device_id) const { 78 const WebBluetoothDeviceId& device_id) const {
79 return !(*this == device_id); 79 return !(*this == device_id);
80 } 80 }
81 81
82 } // namespace content
83
82 std::ostream& operator<<(std::ostream& out, 84 std::ostream& operator<<(std::ostream& out,
83 const WebBluetoothDeviceId& device_id) { 85 const content::WebBluetoothDeviceId& device_id) {
dcheng 2016/11/24 04:56:49 Strictly speaking, shouldn't this be in namespace
juncai 2016/11/28 22:25:21 If it is in the namespace content as before, the f
dcheng 2016/11/28 22:29:33 I don't think I understand what this has to do wit
juncai 2016/11/29 04:23:28 Done.
84 return out << device_id.str(); 86 return out << device_id.str();
85 } 87 }
86
87 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698