| OLD | NEW |
| 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 #include "remoting/protocol/clipboard_echo_filter.h" | 5 #include "remoting/protocol/clipboard_echo_filter.h" |
| 6 | 6 |
| 7 #include "remoting/proto/event.pb.h" | 7 #include "remoting/proto/event.pb.h" |
| 8 | 8 |
| 9 namespace remoting { | 9 namespace remoting { |
| 10 namespace protocol { | 10 namespace protocol { |
| 11 | 11 |
| 12 ClipboardEchoFilter::ClipboardEchoFilter() | 12 ClipboardEchoFilter::ClipboardEchoFilter() |
| 13 : host_stub_(NULL), | 13 : host_stub_(nullptr), |
| 14 client_stub_(NULL), | 14 client_stub_(nullptr), |
| 15 client_filter_(this), | 15 client_filter_(this), |
| 16 host_filter_(this) { | 16 host_filter_(this) { |
| 17 } | 17 } |
| 18 | 18 |
| 19 ClipboardEchoFilter::~ClipboardEchoFilter() { | 19 ClipboardEchoFilter::~ClipboardEchoFilter() { |
| 20 } | 20 } |
| 21 | 21 |
| 22 void ClipboardEchoFilter::set_client_stub(ClipboardStub* client_stub) { | 22 void ClipboardEchoFilter::set_client_stub(ClipboardStub* client_stub) { |
| 23 client_stub_ = client_stub; | 23 client_stub_ = client_stub; |
| 24 } | 24 } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 ClipboardEchoFilter* filter) : filter_(filter) { | 69 ClipboardEchoFilter* filter) : filter_(filter) { |
| 70 } | 70 } |
| 71 | 71 |
| 72 void ClipboardEchoFilter::HostFilter::InjectClipboardEvent( | 72 void ClipboardEchoFilter::HostFilter::InjectClipboardEvent( |
| 73 const ClipboardEvent& event) { | 73 const ClipboardEvent& event) { |
| 74 filter_->InjectClipboardEventToHost(event); | 74 filter_->InjectClipboardEventToHost(event); |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace protocol | 77 } // namespace protocol |
| 78 } // namespace remoting | 78 } // namespace remoting |
| OLD | NEW |