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

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

Issue 9827006: Refactor VideoStub interface to accept ownership of video packets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "remoting/protocol/channel_dispatcher_base.h" 8 #include "remoting/protocol/channel_dispatcher_base.h"
9 #include "remoting/protocol/message_reader.h" 9 #include "remoting/protocol/message_reader.h"
10 10
(...skipping 21 matching lines...) Expand all
32 // callback cannot tear down this object. 32 // callback cannot tear down this object.
33 void set_sequence_number_callback(const SequenceNumberCallback& value) { 33 void set_sequence_number_callback(const SequenceNumberCallback& value) {
34 sequence_number_callback_ = value; 34 sequence_number_callback_ = value;
35 } 35 }
36 36
37 protected: 37 protected:
38 // ChannelDispatcherBase overrides. 38 // ChannelDispatcherBase overrides.
39 virtual void OnInitialized() OVERRIDE; 39 virtual void OnInitialized() OVERRIDE;
40 40
41 private: 41 private:
42 void OnMessageReceived(EventMessage* message, 42 void OnMessageReceived(scoped_ptr<EventMessage> message,
43 const base::Closure& done_task); 43 const base::Closure& done_task);
44 44
45 InputStub* input_stub_; 45 InputStub* input_stub_;
46 SequenceNumberCallback sequence_number_callback_; 46 SequenceNumberCallback sequence_number_callback_;
47 47
48 ProtobufMessageReader<EventMessage> reader_; 48 ProtobufMessageReader<EventMessage> reader_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(HostEventDispatcher); 50 DISALLOW_COPY_AND_ASSIGN(HostEventDispatcher);
51 }; 51 };
52 52
53 } // namespace protocol 53 } // namespace protocol
54 } // namespace remoting 54 } // namespace remoting
55 55
56 #endif // REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_ 56 #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