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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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/port_forwarding_controller.h" 5 #include "chrome/browser/devtools/device/port_forwarding_controller.h"
6 6
7 #include <map> 7 #include <map>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/prefs/pref_service.h"
16 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
17 #include "base/strings/string_split.h" 16 #include "base/strings/string_split.h"
18 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
19 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
20 #include "base/threading/non_thread_safe.h" 19 #include "base/threading/non_thread_safe.h"
21 #include "chrome/browser/devtools/devtools_protocol.h" 20 #include "chrome/browser/devtools/devtools_protocol.h"
22 #include "chrome/browser/devtools/devtools_protocol_constants.h" 21 #include "chrome/browser/devtools/devtools_protocol_constants.h"
23 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
24 #include "chrome/common/pref_names.h" 23 #include "chrome/common/pref_names.h"
25 #include "components/keyed_service/content/browser_context_dependency_manager.h" 24 #include "components/keyed_service/content/browser_context_dependency_manager.h"
25 #include "components/prefs/pref_service.h"
26 #include "content/public/browser/browser_thread.h" 26 #include "content/public/browser/browser_thread.h"
27 #include "net/base/address_list.h" 27 #include "net/base/address_list.h"
28 #include "net/base/io_buffer.h" 28 #include "net/base/io_buffer.h"
29 #include "net/base/net_errors.h" 29 #include "net/base/net_errors.h"
30 #include "net/base/net_util.h" 30 #include "net/base/net_util.h"
31 #include "net/dns/host_resolver.h" 31 #include "net/dns/host_resolver.h"
32 #include "net/socket/tcp_client_socket.h" 32 #include "net/socket/tcp_client_socket.h"
33 33
34 using content::BrowserThread; 34 using content::BrowserThread;
35 35
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 registry_copy.push_back(it->second); 493 registry_copy.push_back(it->second);
494 } 494 }
495 STLDeleteElements(&registry_copy); 495 STLDeleteElements(&registry_copy);
496 } 496 }
497 } 497 }
498 498
499 void PortForwardingController::UpdateConnections() { 499 void PortForwardingController::UpdateConnections() {
500 for (Registry::iterator it = registry_.begin(); it != registry_.end(); ++it) 500 for (Registry::iterator it = registry_.begin(); it != registry_.end(); ++it)
501 it->second->UpdateForwardingMap(forwarding_map_); 501 it->second->UpdateForwardingMap(forwarding_map_);
502 } 502 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/device/port_forwarding_controller.h ('k') | chrome/browser/devtools/devtools_file_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698