Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(611)

Side by Side Diff: chrome/browser/devtools/device/cast_device_provider.cc

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/single_thread_task_runner.h"
12 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
13 #include "base/strings/string_split.h" 14 #include "base/strings/string_split.h"
14 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
15 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" 16 #include "chrome/browser/local_discovery/service_discovery_shared_client.h"
16 #include "net/base/host_port_pair.h" 17 #include "net/base/host_port_pair.h"
17 #include "net/base/ip_address.h" 18 #include "net/base/ip_address.h"
18 19
19 using local_discovery::ServiceDescription; 20 using local_discovery::ServiceDescription;
20 using local_discovery::ServiceDiscoveryDeviceLister; 21 using local_discovery::ServiceDiscoveryDeviceLister;
21 using local_discovery::ServiceDiscoverySharedClient; 22 using local_discovery::ServiceDiscoverySharedClient;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 const std::string& hostname = it->second; 197 const std::string& hostname = it->second;
197 device_info_map_.erase(hostname); 198 device_info_map_.erase(hostname);
198 service_hostname_map_.erase(it); 199 service_hostname_map_.erase(it);
199 } 200 }
200 201
201 void CastDeviceProvider::OnDeviceCacheFlushed() { 202 void CastDeviceProvider::OnDeviceCacheFlushed() {
202 VLOG(1) << "Device cache flushed"; 203 VLOG(1) << "Device cache flushed";
203 service_hostname_map_.clear(); 204 service_hostname_map_.clear();
204 device_info_map_.clear(); 205 device_info_map_.clear();
205 } 206 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698