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

Side by Side Diff: remoting/protocol/client_control_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) 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_CLIENT_CONTROL_DISPATCHER_H_ 5 #ifndef REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_
6 #define REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ 6 #define REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "remoting/protocol/channel_dispatcher_base.h" 9 #include "remoting/protocol/channel_dispatcher_base.h"
10 #include "remoting/protocol/clipboard_stub.h" 10 #include "remoting/protocol/clipboard_stub.h"
(...skipping 24 matching lines...) Expand all
35 // Sets ClientStub that will be called for each incoming control 35 // Sets ClientStub that will be called for each incoming control
36 // message. Doesn't take ownership of |client_stub|. It must outlive 36 // message. Doesn't take ownership of |client_stub|. It must outlive
37 // this dispatcher. 37 // this dispatcher.
38 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; } 38 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; }
39 39
40 protected: 40 protected:
41 // ChannelDispatcherBase overrides. 41 // ChannelDispatcherBase overrides.
42 virtual void OnInitialized() OVERRIDE; 42 virtual void OnInitialized() OVERRIDE;
43 43
44 private: 44 private:
45 void OnMessageReceived(ControlMessage* message, 45 void OnMessageReceived(scoped_ptr<ControlMessage> message,
46 const base::Closure& done_task); 46 const base::Closure& done_task);
47 47
48 ClientStub* client_stub_; 48 ClientStub* client_stub_;
49 49
50 ProtobufMessageReader<ControlMessage> reader_; 50 ProtobufMessageReader<ControlMessage> reader_;
51 scoped_refptr<BufferedSocketWriter> writer_; 51 scoped_refptr<BufferedSocketWriter> writer_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher); 53 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher);
54 }; 54 };
55 55
56 } // namespace protocol 56 } // namespace protocol
57 } // namespace remoting 57 } // namespace remoting
58 58
59 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ 59 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_
OLDNEW
« no previous file with comments | « remoting/host/screen_recorder_unittest.cc ('k') | remoting/protocol/client_control_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698