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

Side by Side Diff: remoting/protocol/host_event_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_EVENT_DISPATCHER_H_ 5 #ifndef REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_
6 #define REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_ 6 #define REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 // the dispatcher. 31 // the dispatcher.
32 void set_input_stub(InputStub* input_stub) { input_stub_ = input_stub; } 32 void set_input_stub(InputStub* input_stub) { input_stub_ = input_stub; }
33 33
34 // Set callback to notify of each message's sequence number. The 34 // Set callback to notify of each message's sequence number. The
35 // callback cannot tear down this object. 35 // callback cannot tear down this object.
36 void set_on_input_event_callback(const OnInputEventCallback& value) { 36 void set_on_input_event_callback(const OnInputEventCallback& value) {
37 on_input_event_callback_ = value; 37 on_input_event_callback_ = value;
38 } 38 }
39 39
40 private: 40 private:
41 void OnMessageReceived(scoped_ptr<EventMessage> message, 41 void OnMessageReceived(scoped_ptr<EventMessage> message);
42 const base::Closure& done_task);
43 42
44 InputStub* input_stub_; 43 InputStub* input_stub_;
45 OnInputEventCallback on_input_event_callback_; 44 OnInputEventCallback on_input_event_callback_;
46 45
47 ProtobufMessageParser<EventMessage> parser_; 46 ProtobufMessageParser<EventMessage> parser_;
48 47
49 DISALLOW_COPY_AND_ASSIGN(HostEventDispatcher); 48 DISALLOW_COPY_AND_ASSIGN(HostEventDispatcher);
50 }; 49 };
51 50
52 } // namespace protocol 51 } // namespace protocol
53 } // namespace remoting 52 } // namespace remoting
54 53
55 #endif // REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_ 54 #endif // REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/host_control_dispatcher.cc ('k') | remoting/protocol/host_event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698