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

Side by Side Diff: content/public/browser/io_thread_delegate.h

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 #ifndef CONTENT_PUBLIC_BROWSER_IO_THREAD_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_IO_THREAD_DELEGATE_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10
11 namespace content {
12
13 // Some embedders may want to attach complex state to the IO thread,
14 // that is initialized before anything else happens on the thread, and
15 // torn down as the last thing that occurs on the thread.
16 //
17 // This is the interface to the object implementors need to provide
18 // via BrowserMainParts::PreMainMessageLoopRun to enable such
19 // initialization and teardown.
20 class IOThreadDelegate {
21 public:
22 virtual ~IOThreadDelegate() {}
23
24 // Called as the first thing to happen on the IO thread.
25 virtual void Init() = 0;
26
27 // Called as the last thing processed on the IO thread.
28 virtual void CleanUp() = 0;
29 };
30
31 } // namespace content
32
33 #endif // CONTENT_PUBLIC_BROWSER_IO_THREAD_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698