| 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/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "base/time/default_clock.h" | 15 #include "base/time/default_clock.h" |
| 16 #include "base/time/default_tick_clock.h" | 16 #include "base/time/default_tick_clock.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "components/cryptauth/cryptauth_enrollment_manager.h" | 18 #include "components/cryptauth/cryptauth_enrollment_manager.h" |
| 19 #include "components/cryptauth/proto/cryptauth_api.pb.h" | 19 #include "components/cryptauth/proto/cryptauth_api.pb.h" |
| 20 #include "components/cryptauth/remote_device_loader.h" | 20 #include "components/cryptauth/remote_device_loader.h" |
| 21 #include "components/cryptauth/secure_context.h" | 21 #include "components/cryptauth/secure_context.h" |
| 22 #include "components/cryptauth/secure_message_delegate.h" | 22 #include "components/cryptauth/secure_message_delegate.h" |
| 23 #include "components/prefs/pref_service.h" | 23 #include "components/prefs/pref_service.h" |
| 24 #include "components/proximity_auth/ble/pref_names.h" | |
| 25 #include "components/proximity_auth/bluetooth_connection_finder.h" | 24 #include "components/proximity_auth/bluetooth_connection_finder.h" |
| 26 #include "components/proximity_auth/logging/logging.h" | 25 #include "components/proximity_auth/logging/logging.h" |
| 27 #include "components/proximity_auth/messenger.h" | 26 #include "components/proximity_auth/messenger.h" |
| 28 #include "components/proximity_auth/remote_device_life_cycle_impl.h" | 27 #include "components/proximity_auth/remote_device_life_cycle_impl.h" |
| 29 #include "components/proximity_auth/remote_status_update.h" | 28 #include "components/proximity_auth/remote_status_update.h" |
| 30 #include "components/proximity_auth/webui/reachable_phone_flow.h" | 29 #include "components/proximity_auth/webui/reachable_phone_flow.h" |
| 31 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
| 32 #include "content/public/browser/web_ui.h" | 31 #include "content/public/browser/web_ui.h" |
| 33 #include "device/bluetooth/bluetooth_uuid.h" | 32 #include "device/bluetooth/bluetooth_uuid.h" |
| 34 | 33 |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 << "\n trust_agent_state: " | 609 << "\n trust_agent_state: " |
| 611 << static_cast<int>(status_update.trust_agent_state); | 610 << static_cast<int>(status_update.trust_agent_state); |
| 612 | 611 |
| 613 last_remote_status_update_.reset(new RemoteStatusUpdate(status_update)); | 612 last_remote_status_update_.reset(new RemoteStatusUpdate(status_update)); |
| 614 std::unique_ptr<base::ListValue> unlock_keys = GetUnlockKeysList(); | 613 std::unique_ptr<base::ListValue> unlock_keys = GetUnlockKeysList(); |
| 615 web_ui()->CallJavascriptFunctionUnsafe( | 614 web_ui()->CallJavascriptFunctionUnsafe( |
| 616 "LocalStateInterface.onUnlockKeysChanged", *unlock_keys); | 615 "LocalStateInterface.onUnlockKeysChanged", *unlock_keys); |
| 617 } | 616 } |
| 618 | 617 |
| 619 } // namespace proximity_auth | 618 } // namespace proximity_auth |
| OLD | NEW |