Chromium Code Reviews| Index: remoting/host/client_session.cc |
| diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc |
| index 86a6753d3e55d57c65c506065572b40d4e6b8190..926d66b59bdf59403b3468499a37b0a6c7da8bc8 100644 |
| --- a/remoting/host/client_session.cc |
| +++ b/remoting/host/client_session.cc |
| @@ -27,6 +27,7 @@ ClientSession::ClientSession( |
| input_tracker_(host_event_stub_), |
| remote_input_filter_(&input_tracker_), |
| mouse_input_filter_(&remote_input_filter_), |
| + client_clipboard_(clipboard_echo_filter_.client_filter()), |
| capturer_(capturer) { |
| connection_->SetEventHandler(this); |
| @@ -164,4 +165,13 @@ void ClientSession::SetDisableInputs(bool disable_inputs) { |
| } |
| } |
| +scoped_refptr<protocol::ClipboardProxy> ClientSession::ClientClipboard() { |
| + DCHECK(CalledOnValidThread()); |
| + |
| + scoped_refptr<protocol::ClipboardProxy> client_clipboard = |
| + new protocol::ClipboardProxy(base::MessageLoopProxy::current()); |
| + client_clipboard->Attach(client_clipboard_.AsWeakPtr()); |
| + return client_clipboard; |
|
Wez
2012/05/30 01:15:43
Since you're creating a new ClipboardProxy every t
simonmorris
2012/05/30 16:54:06
I want ClipboardThreadProxy to be refcounted so th
Wez
2012/05/30 17:07:47
You can do that if instead of storing a WeakPtr to
simonmorris
2012/05/30 23:18:26
As discussed offline, ClipboardThreadProxy does ne
|
| +} |
| + |
| } // namespace remoting |