| 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 "blimp/net/blimp_connection.h" | 5 #include "blimp/net/blimp_connection.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 } | 185 } |
| 186 | 186 |
| 187 BlimpMessageProcessor* BlimpConnection::GetOutgoingMessageProcessor() { | 187 BlimpMessageProcessor* BlimpConnection::GetOutgoingMessageProcessor() { |
| 188 return outgoing_msg_processor_.get(); | 188 return outgoing_msg_processor_.get(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 void BlimpConnection::OnConnectionError(int error) { | 191 void BlimpConnection::OnConnectionError(int error) { |
| 192 VLOG(1) << "OnConnectionError, error=" << error; | 192 VLOG(1) << "OnConnectionError, error=" << error; |
| 193 | 193 |
| 194 // Propagate the error to all observers. | 194 // Propagate the error to all observers. |
| 195 FOR_EACH_OBSERVER(ConnectionErrorObserver, error_observers_, | 195 for (auto& observer : error_observers_) |
| 196 OnConnectionError(error)); | 196 observer.OnConnectionError(error); |
| 197 } | 197 } |
| 198 | 198 |
| 199 } // namespace blimp | 199 } // namespace blimp |
| OLD | NEW |