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

Unified Diff: content/browser/android/launcher_thread.h

Issue 2774363003: android: Java-based launcher thread (Closed)
Patch Set: gab review 2 Created 3 years, 9 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/browser/BUILD.gn ('k') | content/browser/android/launcher_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/launcher_thread.h
diff --git a/content/browser/android/launcher_thread.h b/content/browser/android/launcher_thread.h
new file mode 100644
index 0000000000000000000000000000000000000000..a64ebd8e81a4b53bac6a1fe2af2e3479dd69e400
--- /dev/null
+++ b/content/browser/android/launcher_thread.h
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/android/java_handler_thread.h"
+
+#include "base/lazy_instance.h"
+
+namespace base {
+class MessageLoop;
+}
+
+namespace content {
+namespace android {
+
+// This is Android's launcher thread. This should not be used directly in
+// native code, but accessed through BrowserThread(Impl) instead.
+class LauncherThread {
+ public:
+ static base::MessageLoop* GetMessageLoop();
+
+ private:
+ friend base::LazyInstanceTraitsBase<LauncherThread>;
+
+ LauncherThread();
+ ~LauncherThread();
+
+ base::android::JavaHandlerThread java_handler_thread_;
+};
+
+} // namespace android
+} // namespace content
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/android/launcher_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698