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

Side by Side Diff: components/cryptauth/ble/bluetooth_low_energy_weave_packet_receiver.cc

Issue 2561203002: Migrate weave-related classes from proximity_auth/ble to cryptauth/ble. (Closed)
Patch Set: Rebase. 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 "components/proximity_auth/ble/bluetooth_low_energy_weave_packet_receiv er.h" 5 #include "components/cryptauth/ble/bluetooth_low_energy_weave_packet_receiver.h"
6 6
7 #ifdef OS_WIN 7 #ifdef OS_WIN
8 #include <winsock2.h> 8 #include <winsock2.h>
9 #else 9 #else
10 #include <netinet/in.h> 10 #include <netinet/in.h>
11 #endif 11 #endif
12 12
13 #include "components/proximity_auth/logging/logging.h" 13 #include "components/proximity_auth/logging/logging.h"
14 14
15 namespace proximity_auth { 15 namespace cryptauth {
16 namespace weave { 16 namespace weave {
17 namespace { 17 namespace {
18 18
19 const uint16_t kMaxInitControlPacketSize = 20; 19 const uint16_t kMaxInitControlPacketSize = 20;
20 const uint16_t kMaxPacketSizeLowerBound = 20; 20 const uint16_t kMaxPacketSizeLowerBound = 20;
21 21
22 } // namespace 22 } // namespace
23 23
24 std::shared_ptr<BluetoothLowEnergyWeavePacketReceiver::Factory> 24 std::shared_ptr<BluetoothLowEnergyWeavePacketReceiver::Factory>
25 BluetoothLowEnergyWeavePacketReceiver::Factory::factory_instance_ = nullptr; 25 BluetoothLowEnergyWeavePacketReceiver::Factory::factory_instance_ = nullptr;
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 } 441 }
442 442
443 uint16_t BluetoothLowEnergyWeavePacketReceiver::GetConceptualMaxPacketSize() { 443 uint16_t BluetoothLowEnergyWeavePacketReceiver::GetConceptualMaxPacketSize() {
444 if (!max_packet_size_) 444 if (!max_packet_size_)
445 return kMaxPacketSizeLowerBound; 445 return kMaxPacketSizeLowerBound;
446 return max_packet_size_; 446 return max_packet_size_;
447 } 447 }
448 448
449 } // namespace weave 449 } // namespace weave
450 450
451 } // namespace proximity_auth 451 } // namespace cryptauth
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698