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

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

Issue 8718012: Revert 111695 - Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
« no previous file with comments | « content/public/browser/browser_thread.h ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_THREAD_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_DELEGATE_H_
7 #pragma once
8
9 namespace content {
10
11 // A class with this type may be registered via
12 // BrowserThread::SetDelegate.
13 //
14 // If registered as such, it will receive an Init() call right before
15 // the BrowserThread in question starts its message loop (and right
16 // after the BrowserThread has done its own initialization), and a
17 // CleanUp call right after the message loop ends (and before the
18 // BrowserThread has done its own clean-up).
19 class BrowserThreadDelegate {
20 public:
21 virtual ~BrowserThreadDelegate() {}
22
23 // Called just prior to starting the message loop.
24 virtual void Init() = 0;
25
26 // Called just after the message loop ends.
27 virtual void CleanUp() = 0;
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_THREAD_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_thread.h ('k') | content/shell/shell_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698