| 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/port_forwarding_controller.h" | 5 #include "chrome/browser/devtools/device/port_forwarding_controller.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
| 11 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
| 12 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 13 #include "base/prefs/pref_service.h" | 14 #include "base/prefs/pref_service.h" |
| 14 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
| 16 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 17 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
| 18 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
| 19 #include "chrome/browser/devtools/devtools_protocol.h" | 20 #include "chrome/browser/devtools/devtools_protocol.h" |
| 20 #include "chrome/browser/devtools/devtools_protocol_constants.h" | 21 #include "chrome/browser/devtools/devtools_protocol_constants.h" |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 registry_copy.push_back(it->second); | 492 registry_copy.push_back(it->second); |
| 492 } | 493 } |
| 493 STLDeleteElements(®istry_copy); | 494 STLDeleteElements(®istry_copy); |
| 494 } | 495 } |
| 495 } | 496 } |
| 496 | 497 |
| 497 void PortForwardingController::UpdateConnections() { | 498 void PortForwardingController::UpdateConnections() { |
| 498 for (Registry::iterator it = registry_.begin(); it != registry_.end(); ++it) | 499 for (Registry::iterator it = registry_.begin(); it != registry_.end(); ++it) |
| 499 it->second->UpdateForwardingMap(forwarding_map_); | 500 it->second->UpdateForwardingMap(forwarding_map_); |
| 500 } | 501 } |
| OLD | NEW |