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

Unified Diff: remoting/protocol/ref_counted_task.cc

Issue 6271004: Changed MessageReader so that it doesn't read from the socket if there are (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 11 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/ref_counted_task.cc
diff --git a/remoting/protocol/ref_counted_task.cc b/remoting/protocol/ref_counted_task.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ba86cb092fbe758b2bf7ab977d0aa9d7fd1b75b8
--- /dev/null
+++ b/remoting/protocol/ref_counted_task.cc
@@ -0,0 +1,17 @@
+// Copyright (c) 2010 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 "remoting/protocol/ref_counted_task.h"
+
+namespace remoting {
+namespace protocol {
+
+RefCountedTask::RefCountedTask(Task* task) : task_(task) { }
+
+RefCountedTask::~RefCountedTask() {
+ task_->Run();
+}
+
+} // namespace protocol
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698