This source file includes following definitions.
- enabled_
- enabled_
- set_clipboard_stub
- InjectClipboardEvent
#include "base/logging.h"
#include "remoting/protocol/clipboard_filter.h"
namespace remoting {
namespace protocol {
ClipboardFilter::ClipboardFilter() : clipboard_stub_(NULL), enabled_(true) {
}
ClipboardFilter::ClipboardFilter(ClipboardStub* clipboard_stub)
: clipboard_stub_(clipboard_stub), enabled_(true) {
}
ClipboardFilter::~ClipboardFilter() {
}
void ClipboardFilter::set_clipboard_stub(ClipboardStub* clipboard_stub) {
clipboard_stub_ = clipboard_stub;
}
void ClipboardFilter::InjectClipboardEvent(const ClipboardEvent& event) {
if (enabled_ && clipboard_stub_ != NULL)
clipboard_stub_->InjectClipboardEvent(event);
}
}
}