OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/webui/proximity_auth_webui_handler.h" | 5 #include "components/proximity_auth/webui/proximity_auth_webui_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/base64url.h" | 10 #include "base/base64url.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/i18n/time_formatting.h" | 12 #include "base/i18n/time_formatting.h" |
13 #include "base/prefs/pref_service.h" | |
14 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
15 #include "base/time/default_clock.h" | 14 #include "base/time/default_clock.h" |
16 #include "base/time/default_tick_clock.h" | 15 #include "base/time/default_tick_clock.h" |
17 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "components/prefs/pref_service.h" |
18 #include "components/proximity_auth/ble/pref_names.h" | 18 #include "components/proximity_auth/ble/pref_names.h" |
19 #include "components/proximity_auth/bluetooth_connection_finder.h" | 19 #include "components/proximity_auth/bluetooth_connection_finder.h" |
20 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_manager.h" | 20 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_manager.h" |
21 #include "components/proximity_auth/cryptauth/proto/cryptauth_api.pb.h" | 21 #include "components/proximity_auth/cryptauth/proto/cryptauth_api.pb.h" |
22 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" | 22 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" |
23 #include "components/proximity_auth/logging/logging.h" | 23 #include "components/proximity_auth/logging/logging.h" |
24 #include "components/proximity_auth/messenger.h" | 24 #include "components/proximity_auth/messenger.h" |
25 #include "components/proximity_auth/remote_device_life_cycle_impl.h" | 25 #include "components/proximity_auth/remote_device_life_cycle_impl.h" |
26 #include "components/proximity_auth/remote_device_loader.h" | 26 #include "components/proximity_auth/remote_device_loader.h" |
27 #include "components/proximity_auth/remote_status_update.h" | 27 #include "components/proximity_auth/remote_status_update.h" |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 << "\n trust_agent_state: " | 600 << "\n trust_agent_state: " |
601 << static_cast<int>(status_update.trust_agent_state); | 601 << static_cast<int>(status_update.trust_agent_state); |
602 | 602 |
603 last_remote_status_update_.reset(new RemoteStatusUpdate(status_update)); | 603 last_remote_status_update_.reset(new RemoteStatusUpdate(status_update)); |
604 scoped_ptr<base::ListValue> unlock_keys = GetUnlockKeysList(); | 604 scoped_ptr<base::ListValue> unlock_keys = GetUnlockKeysList(); |
605 web_ui()->CallJavascriptFunction("LocalStateInterface.onUnlockKeysChanged", | 605 web_ui()->CallJavascriptFunction("LocalStateInterface.onUnlockKeysChanged", |
606 *unlock_keys); | 606 *unlock_keys); |
607 } | 607 } |
608 | 608 |
609 } // namespace proximity_auth | 609 } // namespace proximity_auth |
OLD | NEW |