OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chromeos/dbus/fake_nfc_device_client.h" | 5 #include "chromeos/dbus/fake_nfc_device_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "chromeos/dbus/dbus_thread_manager.h" | 11 #include "chromeos/dbus/dbus_thread_manager.h" |
12 #include "chromeos/dbus/fake_nfc_adapter_client.h" | 12 #include "chromeos/dbus/fake_nfc_adapter_client.h" |
13 #include "chromeos/dbus/fake_nfc_record_client.h" | 13 #include "chromeos/dbus/fake_nfc_record_client.h" |
14 #include "chromeos/dbus/nfc_client_helpers.h" | |
15 #include "dbus/object_path.h" | 14 #include "dbus/object_path.h" |
16 #include "third_party/cros_system_api/dbus/service_constants.h" | 15 #include "third_party/cros_system_api/dbus/service_constants.h" |
17 | 16 |
18 namespace chromeos { | 17 namespace chromeos { |
19 | 18 |
20 using nfc_client_helpers::ObjectPathVector; | 19 using nfc_client_helpers::ObjectPathVector; |
21 | 20 |
22 const char FakeNfcDeviceClient::kDevicePath[] = "/fake/device0"; | 21 const char FakeNfcDeviceClient::kDevicePath[] = "/fake/device0"; |
23 const int FakeNfcDeviceClient::kDefaultSimulationTimeoutMilliseconds = 10000; | 22 const int FakeNfcDeviceClient::kDefaultSimulationTimeoutMilliseconds = 10000; |
24 | 23 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 | 234 |
236 void FakeNfcDeviceClient::HandleSimulationTimeout() { | 235 void FakeNfcDeviceClient::HandleSimulationTimeout() { |
237 if (simulation_timeout_ < 0) { | 236 if (simulation_timeout_ < 0) { |
238 VLOG(1) << "Simulation timeout was cancelled. Nothing to do."; | 237 VLOG(1) << "Simulation timeout was cancelled. Nothing to do."; |
239 return; | 238 return; |
240 } | 239 } |
241 EndPairingSimulation(); | 240 EndPairingSimulation(); |
242 } | 241 } |
243 | 242 |
244 } // namespace chromeos | 243 } // namespace chromeos |
OLD | NEW |