| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/devtools/devtools_manager.h" | 5 #include "content/browser/devtools/devtools_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "content/browser/devtools/devtools_agent_host_impl.h" | 9 #include "content/browser/devtools/devtools_agent_host_impl.h" |
| 10 #include "content/browser/devtools/devtools_netlog_observer.h" | 10 #include "content/browser/devtools/devtools_netlog_observer.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 &DevToolsManager::NotifyTargetListChanged, | 116 &DevToolsManager::NotifyTargetListChanged, |
| 117 base::Unretained(this))); | 117 base::Unretained(this))); |
| 118 } | 118 } |
| 119 | 119 |
| 120 void DevToolsManager::NotifyTargetListChanged( | 120 void DevToolsManager::NotifyTargetListChanged( |
| 121 const Observer::TargetList& targets) { | 121 const Observer::TargetList& targets) { |
| 122 FOR_EACH_OBSERVER(Observer, observer_list_, TargetListChanged(targets)); | 122 FOR_EACH_OBSERVER(Observer, observer_list_, TargetListChanged(targets)); |
| 123 STLDeleteContainerPointers(targets.begin(), targets.end()); | 123 STLDeleteContainerPointers(targets.begin(), targets.end()); |
| 124 } | 124 } |
| 125 | 125 |
| 126 void DevToolsManager::SetSchedulerForTest(Scheduler scheduler) { | 126 void DevToolsManager::SetUpForTest(Scheduler scheduler) { |
| 127 scheduler_ = scheduler; | 127 scheduler_ = scheduler; |
| 128 delegate_.reset(GetContentClient()->browser()->GetDevToolsManagerDelegate()); |
| 128 } | 129 } |
| 129 | 130 |
| 130 } // namespace content | 131 } // namespace content |
| OLD | NEW |