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

Unified Diff: content/public/browser/browser_thread_delegate.h

Issue 2558943002: Explicitly make BrowserThread::SetDelegate specific to the IO thread. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/browser_thread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/browser_thread_delegate.h
diff --git a/content/public/browser/browser_thread_delegate.h b/content/public/browser/browser_thread_delegate.h
index 3688e656e73bb119df5271d68c0702b5bfa01bf0..696b76d807e998975ea53f20071ff44076bfc6a9 100644
--- a/content/public/browser/browser_thread_delegate.h
+++ b/content/public/browser/browser_thread_delegate.h
@@ -7,17 +7,15 @@
namespace content {
-// A class with this type may be registered via
-// BrowserThread::SetDelegate.
+// BrowserThread::SetDelegate was deprecated, this is now only used by
+// BrowserThread::SetIOThreadDelegate.
//
-// If registered as such, it will schedule to run Init() before the
-// message loop begins and the schedule InitAsync() as the first
-// task on its message loop (after the BrowserThread has done its own
-// initialization), and receive a CleanUp call right after the message
-// loop ends (and before the BrowserThread has done its own clean-up).
+// When registered as such, it will schedule to run Init() before the message
+// loop begins and receive a CleanUp call right after the message loop ends (and
+// before the BrowserThread has done its own clean-up).
class BrowserThreadDelegate {
public:
- virtual ~BrowserThreadDelegate() {}
+ virtual ~BrowserThreadDelegate() = default;
// Called prior to starting the message loop
virtual void Init() = 0;
« no previous file with comments | « content/public/browser/browser_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698