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

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: rebase 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
« no previous file with comments | « blimp/client/session/blimp_client_session_android.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « blimp/client/session/blimp_client_session_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698