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

Unified Diff: ui/views/views_delegate.h

Issue 1089003003: Pass a TaskRunner through ViewsDelegate to put AX init on FILE thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: ui/views/views_delegate.h
diff --git a/ui/views/views_delegate.h b/ui/views/views_delegate.h
index ea14e7887047e936145986e3fe52f8994c32e53a..bcfb345db128aa50365c3ff679995c2735506db1 100644
--- a/ui/views/views_delegate.h
+++ b/ui/views/views_delegate.h
@@ -19,6 +19,7 @@
#include "ui/views/widget/widget.h"
namespace base {
+class TaskRunner;
class TimeDelta;
}
@@ -138,6 +139,10 @@ class VIEWS_EXPORT ViewsDelegate {
// Returns the user-visible name of the application.
virtual std::string GetApplicationName();
+ // Get a task runner suitable for posting possibly-blocking initialization
+ // tasks.
+ virtual scoped_refptr<base::TaskRunner> GetInitializationTaskRunner();
+
#if defined(OS_WIN)
// Starts a query for the appbar autohide edges of the specified monitor and
// returns the current value. If the query finds the edges have changed from

Powered by Google App Engine
This is Rietveld 408576698