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> | 7 #include <stddef.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "chrome/common/chrome_switches.h" | 39 #include "chrome/common/chrome_switches.h" |
40 #include "chrome/common/features.h" | 40 #include "chrome/common/features.h" |
41 #include "chrome/common/pref_names.h" | 41 #include "chrome/common/pref_names.h" |
42 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 42 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
43 #include "components/prefs/pref_service.h" | 43 #include "components/prefs/pref_service.h" |
44 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 44 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
45 #include "components/signin/core/browser/signin_manager.h" | 45 #include "components/signin/core/browser/signin_manager.h" |
46 #include "content/public/browser/devtools_agent_host.h" | 46 #include "content/public/browser/devtools_agent_host.h" |
47 #include "content/public/browser/devtools_external_agent_proxy.h" | 47 #include "content/public/browser/devtools_external_agent_proxy.h" |
48 #include "content/public/browser/devtools_external_agent_proxy_delegate.h" | 48 #include "content/public/browser/devtools_external_agent_proxy_delegate.h" |
49 #include "content/public/browser/user_metrics.h" | |
50 #include "net/base/escape.h" | 49 #include "net/base/escape.h" |
51 #include "net/base/host_port_pair.h" | 50 #include "net/base/host_port_pair.h" |
52 #include "net/base/net_errors.h" | 51 #include "net/base/net_errors.h" |
53 | 52 |
54 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 53 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
55 #include "chrome/browser/devtools/device/cast_device_provider.h" | 54 #include "chrome/browser/devtools/device/cast_device_provider.h" |
56 #endif | 55 #endif |
57 | 56 |
58 using content::BrowserThread; | 57 using content::BrowserThread; |
59 using content::DevToolsAgentHost; | 58 using content::DevToolsAgentHost; |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 StopDeviceListPolling(); | 397 StopDeviceListPolling(); |
399 StartDeviceListPolling(); | 398 StartDeviceListPolling(); |
400 } | 399 } |
401 } | 400 } |
402 | 401 |
403 void DevToolsAndroidBridge::set_tcp_provider_callback_for_test( | 402 void DevToolsAndroidBridge::set_tcp_provider_callback_for_test( |
404 TCPProviderCallback callback) { | 403 TCPProviderCallback callback) { |
405 tcp_provider_callback_ = callback; | 404 tcp_provider_callback_ = callback; |
406 CreateDeviceProviders(); | 405 CreateDeviceProviders(); |
407 } | 406 } |
OLD | NEW |