blob: 02233fc2686a56d7239ceb1177a616ffe92af828 [file] [log] [blame]
boliu61687ec52017-03-29 20:09:341// 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
Daniel Bratell1e8113392017-10-13 07:33:285#ifndef CONTENT_BROWSER_ANDROID_LAUNCHER_THREAD_H
6#define CONTENT_BROWSER_ANDROID_LAUNCHER_THREAD_H
7
boliu61687ec52017-03-29 20:09:348#include "base/android/java_handler_thread.h"
9
10#include "base/lazy_instance.h"
11
12namespace base {
13class MessageLoop;
14}
15
16namespace content {
17namespace android {
18
19// This is Android's launcher thread. This should not be used directly in
20// native code, but accessed through BrowserThread(Impl) instead.
21class LauncherThread {
22 public:
23 static base::MessageLoop* GetMessageLoop();
24
25 private:
26 friend base::LazyInstanceTraitsBase<LauncherThread>;
27
28 LauncherThread();
29 ~LauncherThread();
30
31 base::android::JavaHandlerThread java_handler_thread_;
32};
33
34} // namespace android
35} // namespace content
Daniel Bratell1e8113392017-10-13 07:33:2836
37#endif // CONTENT_BROWSER_ANDROID_LAUNCHER_THREAD_H