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 21 matching lines...) Expand all Loading... |
32 DVLOG(2) << "ProcessMessage : " << *message; | 32 DVLOG(2) << "ProcessMessage : " << *message; |
33 auto receiver_iter = feature_receiver_map_.find(message->type()); | 33 auto receiver_iter = feature_receiver_map_.find(message->type()); |
34 if (receiver_iter == feature_receiver_map_.end()) { | 34 if (receiver_iter == feature_receiver_map_.end()) { |
35 DLOG(ERROR) << "No registered receiver for " << *message << "."; | 35 DLOG(ERROR) << "No registered receiver for " << *message << "."; |
36 if (!callback.is_null()) { | 36 if (!callback.is_null()) { |
37 callback.Run(net::ERR_NOT_IMPLEMENTED); | 37 callback.Run(net::ERR_NOT_IMPLEMENTED); |
38 } | 38 } |
39 return; | 39 return; |
40 } | 40 } |
41 | 41 |
| 42 DVLOG(2) << "Routed message " << *message << "."; |
42 receiver_iter->second->ProcessMessage(std::move(message), callback); | 43 receiver_iter->second->ProcessMessage(std::move(message), callback); |
43 } | 44 } |
44 | 45 |
45 } // namespace blimp | 46 } // namespace blimp |
OLD | NEW |