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

Side by Side Diff: content/browser/android/launcher_thread.h

Issue 2774363003: android: Java-based launcher thread (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/android/java_handler_thread.h"
6
7 #include "base/lazy_instance.h"
8
9 namespace base {
10 class MessageLoop;
11 }
12
13 namespace content {
14 namespace android {
15
16 // This is Android's launcher thread. This should not be used directly in
17 // native code, but accessed through BrowserThread(Impl) instead.
18 class LauncherThread {
19 public:
20 static base::MessageLoop* GetLauncherMessageLoop();
21
22 private:
23 friend base::LazyInstanceTraitsBase<LauncherThread>;
24
25 LauncherThread();
26 ~LauncherThread();
27
28 base::MessageLoop* GetMessageLoop();
29
30 base::android::JavaHandlerThread java_handler_thread_;
31 };
32
33 } // namespace android
34 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698