Index: content/browser/browser_process_io_thread.cc |
diff --git a/content/browser/browser_process_io_thread.cc b/content/browser/browser_process_io_thread.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9d3136819d77130afc68361d39303d47a5a0da03 |
--- /dev/null |
+++ b/content/browser/browser_process_io_thread.cc |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2011 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 "content/browser/browser_process_io_thread.h" |
+ |
+#include "content/public/browser/browser_thread.h" |
+ |
+namespace content { |
+ |
+BrowserProcessIOThread::BrowserProcessIOThread(IOThreadDelegate* delegate) |
+ : BrowserProcessSubThread(BrowserThread::IO), |
+ delegate_(delegate) { |
+} |
+ |
+BrowserProcessIOThread::~BrowserProcessIOThread() { |
+ Stop(); |
+} |
+ |
+void BrowserProcessIOThread::Init() { |
+ BrowserProcessSubThread::Init(); |
+ if (delegate_) |
+ delegate_->Init(); |
+} |
+ |
+void BrowserProcessIOThread::CleanUp() { |
+ BrowserProcessSubThread::CleanUp(); |
+ if (delegate_) |
+ delegate_->CleanUp(); |
+} |
+ |
+} // namespace content |