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

Side by Side Diff: shell/android/apk/src/org/chromium/mojo/shell/NativeHandlerThread.java

Issue 2022983003: Roll base to 5e00da80f6adb7082d1c0e88d3274cf87cc43bc5 and tonic to f7acabb8fa6c91124486a41194eac3cd… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.mojo.shell; 5 package org.chromium.mojo.shell;
6 6
7 import android.os.HandlerThread; 7 import android.os.HandlerThread;
8 8
9 import org.chromium.base.JNINamespace; 9 import org.chromium.base.annotations.JNINamespace;
10 10
11 /** 11 /**
12 * Handler thread associated with a native message loop. 12 * Handler thread associated with a native message loop.
13 */ 13 */
14 @JNINamespace("shell") 14 @JNINamespace("shell")
15 public class NativeHandlerThread extends HandlerThread { 15 public class NativeHandlerThread extends HandlerThread {
16 // The native message loop. 16 // The native message loop.
17 private long mNativeMessageLoop = 0; 17 private long mNativeMessageLoop = 0;
18 18
19 /** 19 /**
(...skipping 25 matching lines...) Expand all
45 if (mNativeMessageLoop == 0) { 45 if (mNativeMessageLoop == 0) {
46 mNativeMessageLoop = nativeCreateMessageLoop(); 46 mNativeMessageLoop = nativeCreateMessageLoop();
47 } 47 }
48 super.onLooperPrepared(); 48 super.onLooperPrepared();
49 } 49 }
50 50
51 native long nativeCreateMessageLoop(); 51 native long nativeCreateMessageLoop();
52 52
53 native void nativeDeleteMessageLoop(long messageLoop); 53 native void nativeDeleteMessageLoop(long messageLoop);
54 } 54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698