| 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/pairing/bluetooth_host_pairing_controller.h" | 5 #include "components/pairing/bluetooth_host_pairing_controller.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/hash.h" | 8 #include "base/hash.h" |
| 9 #include "base/location.h" |
| 9 #include "base/logging.h" | 10 #include "base/logging.h" |
| 10 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 11 #include "base/task_runner_util.h" | 12 #include "base/task_runner_util.h" |
| 12 #include "chromeos/system/devicetype.h" | 13 #include "chromeos/system/devicetype.h" |
| 13 #include "components/pairing/bluetooth_pairing_constants.h" | 14 #include "components/pairing/bluetooth_pairing_constants.h" |
| 14 #include "components/pairing/pairing_api.pb.h" | 15 #include "components/pairing/pairing_api.pb.h" |
| 15 #include "components/pairing/proto_decoder.h" | 16 #include "components/pairing/proto_decoder.h" |
| 16 #include "device/bluetooth/bluetooth_adapter_factory.h" | 17 #include "device/bluetooth/bluetooth_adapter_factory.h" |
| 17 #include "net/base/io_buffer.h" | 18 #include "net/base/io_buffer.h" |
| 18 | 19 |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 ChangeStage(STAGE_WAITING_FOR_CODE_CONFIRMATION); | 537 ChangeStage(STAGE_WAITING_FOR_CODE_CONFIRMATION); |
| 537 } | 538 } |
| 538 | 539 |
| 539 void BluetoothHostPairingController::AuthorizePairing( | 540 void BluetoothHostPairingController::AuthorizePairing( |
| 540 device::BluetoothDevice* device) { | 541 device::BluetoothDevice* device) { |
| 541 // Disallow unknown device. | 542 // Disallow unknown device. |
| 542 device->RejectPairing(); | 543 device->RejectPairing(); |
| 543 } | 544 } |
| 544 | 545 |
| 545 } // namespace pairing_chromeos | 546 } // namespace pairing_chromeos |
| OLD | NEW |