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

Unified Diff: remoting/protocol/clipboard_weak_ptr.cc

Issue 10413060: [Chromoting] Let the Windows IT2Me host send clipboard events to the client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use MessageLoopProxy+WeakPtr. Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/clipboard_weak_ptr.cc
diff --git a/remoting/protocol/clipboard_weak_ptr.cc b/remoting/protocol/clipboard_weak_ptr.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9e8cc46b1ef9c79b96344764ca21bc491796bae9
--- /dev/null
+++ b/remoting/protocol/clipboard_weak_ptr.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/logging.h"
+#include "remoting/protocol/clipboard_weak_ptr.h"
+
+namespace remoting {
+namespace protocol {
+
+ClipboardWeakPtr::ClipboardWeakPtr(ClipboardStub* clipboard_stub)
+ : clipboard_stub_(clipboard_stub) {
+ DCHECK(clipboard_stub_);
+}
+
+ClipboardWeakPtr::~ClipboardWeakPtr() {
+}
+
+void ClipboardWeakPtr::InjectClipboardEvent(const ClipboardEvent& event) {
+ clipboard_stub_->InjectClipboardEvent(event);
+}
+
+} // namespace protocol
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698