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

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

Issue 949293002: Implement a poor man's PostAfterStartupTask() function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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
Index: content/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index c4ab6f347f3c5b847083fb74bc89742f329f6716..87faab2ba6348044aeb481e9446a5dc02e8567ea 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -83,6 +83,7 @@ class FileSystemBackend;
namespace content {
class AccessTokenStore;
+class AfterStartupTaskPoster;
class BrowserChildProcessHost;
class BrowserContext;
class BrowserMainParts;
@@ -141,6 +142,11 @@ class CONTENT_EXPORT ContentBrowserClient {
virtual BrowserMainParts* CreateBrowserMainParts(
const MainFunctionParams& parameters);
+ // Allows the embedder to defer the posting of non-critical tasks until
+ // after the "startup" is complete. The default implementation does no
+ // deferral.
+ virtual AfterStartupTaskPoster* GetAfterStartupTaskPoster();
+
// If content creates the WebContentsView implementation, it will ask the
// embedder to return an (optional) delegate to customize it. The view will
// own the delegate.

Powered by Google App Engine
This is Rietveld 408576698