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_message_demultiplexer.h" | 5 #include "blimp/net/blimp_message_demultiplexer.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "blimp/net/common.h" | 10 #include "blimp/net/common.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 const net::CompletionCallback& callback) { | 31 const net::CompletionCallback& callback) { |
32 auto receiver_iter = feature_receiver_map_.find(message->type()); | 32 auto receiver_iter = feature_receiver_map_.find(message->type()); |
33 if (receiver_iter == feature_receiver_map_.end()) { | 33 if (receiver_iter == feature_receiver_map_.end()) { |
34 DLOG(ERROR) << "No registered receiver for " << *message << "."; | 34 DLOG(ERROR) << "No registered receiver for " << *message << "."; |
35 if (!callback.is_null()) { | 35 if (!callback.is_null()) { |
36 callback.Run(net::ERR_NOT_IMPLEMENTED); | 36 callback.Run(net::ERR_NOT_IMPLEMENTED); |
37 } | 37 } |
38 return; | 38 return; |
39 } | 39 } |
40 | 40 |
| 41 DVLOG(2) << "Routed message " << *message << "."; |
41 receiver_iter->second->ProcessMessage(std::move(message), callback); | 42 receiver_iter->second->ProcessMessage(std::move(message), callback); |
42 } | 43 } |
43 | 44 |
44 } // namespace blimp | 45 } // namespace blimp |
OLD | NEW |