Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Side by Side Diff: blimp/net/blimp_message_demultiplexer.cc

Issue 1575493004: Blimp: add some hard-coded actions on client startup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698