OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/browser/browser_process_io_thread.h" |
| 6 |
| 7 #include "content/public/browser/browser_thread.h" |
| 8 |
| 9 namespace content { |
| 10 |
| 11 BrowserProcessIOThread::BrowserProcessIOThread(IOThreadDelegate* delegate) |
| 12 : BrowserProcessSubThread(BrowserThread::IO), |
| 13 delegate_(delegate) { |
| 14 } |
| 15 |
| 16 BrowserProcessIOThread::~BrowserProcessIOThread() { |
| 17 Stop(); |
| 18 } |
| 19 |
| 20 void BrowserProcessIOThread::Init() { |
| 21 BrowserProcessSubThread::Init(); |
| 22 if (delegate_) |
| 23 delegate_->Init(); |
| 24 } |
| 25 |
| 26 void BrowserProcessIOThread::CleanUp() { |
| 27 BrowserProcessSubThread::CleanUp(); |
| 28 if (delegate_) |
| 29 delegate_->CleanUp(); |
| 30 } |
| 31 |
| 32 } // namespace content |
OLD | NEW |