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

Side by Side Diff: content/browser/browser_process_io_thread.cc

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With this patchset, Chrome runs and exits normally on Linux. Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698