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 |