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

Side by Side Diff: remoting/protocol/host_control_dispatcher.h

Issue 1655433002: Remove done notifications from incoming message handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ 5 #ifndef REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_
6 #define REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ 6 #define REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "remoting/protocol/channel_dispatcher_base.h" 9 #include "remoting/protocol/channel_dispatcher_base.h"
10 #include "remoting/protocol/client_stub.h" 10 #include "remoting/protocol/client_stub.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // message. |clipboard_stub| must outlive this object. 48 // message. |clipboard_stub| must outlive this object.
49 void set_clipboard_stub(ClipboardStub* clipboard_stub) { 49 void set_clipboard_stub(ClipboardStub* clipboard_stub) {
50 clipboard_stub_ = clipboard_stub; 50 clipboard_stub_ = clipboard_stub;
51 } 51 }
52 52
53 // Sets the HostStub that will be called for each incoming control 53 // Sets the HostStub that will be called for each incoming control
54 // message. |host_stub| must outlive this object. 54 // message. |host_stub| must outlive this object.
55 void set_host_stub(HostStub* host_stub) { host_stub_ = host_stub; } 55 void set_host_stub(HostStub* host_stub) { host_stub_ = host_stub; }
56 56
57 private: 57 private:
58 void OnMessageReceived(scoped_ptr<ControlMessage> message, 58 void OnMessageReceived(scoped_ptr<ControlMessage> message);
59 const base::Closure& done_task);
60 59
61 ClipboardStub* clipboard_stub_; 60 ClipboardStub* clipboard_stub_;
62 HostStub* host_stub_; 61 HostStub* host_stub_;
63 62
64 ProtobufMessageParser<ControlMessage> parser_; 63 ProtobufMessageParser<ControlMessage> parser_;
65 64
66 DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher); 65 DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher);
67 }; 66 };
68 67
69 } // namespace protocol 68 } // namespace protocol
70 } // namespace remoting 69 } // namespace remoting
71 70
72 #endif // REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ 71 #endif // REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/client_video_dispatcher_unittest.cc ('k') | remoting/protocol/host_control_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698