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

Unified Diff: content/public/common/service_info.h

Issue 2952603002: Add support for specifying message loop type and thread priority for content mojo services (Closed)
Patch Set: Fixing includes Created 3 years, 6 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
« no previous file with comments | « content/common/service_manager/embedded_service_runner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/service_info.h
diff --git a/content/public/common/service_info.h b/content/public/common/service_info.h
index dcfd270e3d9b9eb5209cad783c620587df0facd2..fa8b229ad6191bbeebc84ee67c46260ab406fbb6 100644
--- a/content/public/common/service_info.h
+++ b/content/public/common/service_info.h
@@ -9,7 +9,9 @@
#include "base/callback.h"
#include "base/memory/ref_counted.h"
+#include "base/message_loop/message_loop.h"
#include "base/single_thread_task_runner.h"
+#include "base/threading/platform_thread.h"
#include "content/common/content_export.h"
namespace service_manager {
@@ -43,6 +45,14 @@ struct CONTENT_EXPORT ServiceInfo {
//
// If |task_runner| is not null, this value is ignored.
bool use_own_thread = false;
+
+ // If the service uses its own thread, this determines the type of the message
+ // loop used by the thread.
+ base::MessageLoop::Type message_loop_type = base::MessageLoop::TYPE_DEFAULT;
+
+ // If the service uses its own thread, this determines the priority of the
+ // thread.
+ base::ThreadPriority thread_priority = base::ThreadPriority::NORMAL;
};
} // namespace content
« no previous file with comments | « content/common/service_manager/embedded_service_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698