| 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 "chrome/browser/devtools/device/cast_device_provider.h" | 5 #include "chrome/browser/devtools/device/cast_device_provider.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
| 14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" | 15 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" |
| 16 #include "net/base/host_port_pair.h" | 16 #include "net/base/host_port_pair.h" |
| 17 #include "net/base/ip_address.h" | 17 #include "net/base/ip_address.h" |
| 18 | 18 |
| 19 using local_discovery::ServiceDescription; | 19 using local_discovery::ServiceDescription; |
| 20 using local_discovery::ServiceDiscoveryDeviceLister; | 20 using local_discovery::ServiceDiscoveryDeviceLister; |
| 21 using local_discovery::ServiceDiscoverySharedClient; | 21 using local_discovery::ServiceDiscoverySharedClient; |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 const std::string& hostname = it->second; | 196 const std::string& hostname = it->second; |
| 197 device_info_map_.erase(hostname); | 197 device_info_map_.erase(hostname); |
| 198 service_hostname_map_.erase(it); | 198 service_hostname_map_.erase(it); |
| 199 } | 199 } |
| 200 | 200 |
| 201 void CastDeviceProvider::OnDeviceCacheFlushed() { | 201 void CastDeviceProvider::OnDeviceCacheFlushed() { |
| 202 VLOG(1) << "Device cache flushed"; | 202 VLOG(1) << "Device cache flushed"; |
| 203 service_hostname_map_.clear(); | 203 service_hostname_map_.clear(); |
| 204 device_info_map_.clear(); | 204 device_info_map_.clear(); |
| 205 } | 205 } |
| OLD | NEW |