| 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 "chrome/browser/devtools/device/devtools_android_bridge.h" | 5 #include "chrome/browser/devtools/device/devtools_android_bridge.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 #include <map> | 10 #include <map> |
| 9 #include <set> | 11 #include <set> |
| 10 #include <vector> | 12 #include <vector> |
| 11 | 13 |
| 12 #include "base/base64.h" | 14 #include "base/base64.h" |
| 13 #include "base/bind.h" | 15 #include "base/bind.h" |
| 14 #include "base/command_line.h" | 16 #include "base/command_line.h" |
| 15 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
| 16 #include "base/json/json_reader.h" | 18 #include "base/json/json_reader.h" |
| 17 #include "base/lazy_instance.h" | 19 #include "base/lazy_instance.h" |
| 20 #include "base/macros.h" |
| 18 #include "base/memory/singleton.h" | 21 #include "base/memory/singleton.h" |
| 19 #include "base/message_loop/message_loop.h" | 22 #include "base/message_loop/message_loop.h" |
| 20 #include "base/prefs/pref_service.h" | 23 #include "base/prefs/pref_service.h" |
| 21 #include "base/strings/string_number_conversions.h" | 24 #include "base/strings/string_number_conversions.h" |
| 22 #include "base/strings/string_split.h" | 25 #include "base/strings/string_split.h" |
| 23 #include "base/strings/string_util.h" | 26 #include "base/strings/string_util.h" |
| 24 #include "base/strings/stringprintf.h" | 27 #include "base/strings/stringprintf.h" |
| 25 #include "base/strings/utf_string_conversions.h" | 28 #include "base/strings/utf_string_conversions.h" |
| 26 #include "base/threading/thread.h" | 29 #include "base/threading/thread.h" |
| 27 #include "base/values.h" | 30 #include "base/values.h" |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 device_providers.push_back( | 966 device_providers.push_back( |
| 964 new WebRTCDeviceProvider(profile_, signin_manager_, token_service_)); | 967 new WebRTCDeviceProvider(profile_, signin_manager_, token_service_)); |
| 965 } | 968 } |
| 966 | 969 |
| 967 device_manager_->SetDeviceProviders(device_providers); | 970 device_manager_->SetDeviceProviders(device_providers); |
| 968 if (NeedsDeviceListPolling()) { | 971 if (NeedsDeviceListPolling()) { |
| 969 StopDeviceListPolling(); | 972 StopDeviceListPolling(); |
| 970 StartDeviceListPolling(); | 973 StartDeviceListPolling(); |
| 971 } | 974 } |
| 972 } | 975 } |
| OLD | NEW |