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

Side by Side Diff: base/android/java_handler_thread.h

Issue 2169553002: Properly throw java exceptions from shouldOverrideUrlLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot compilation failure. Created 4 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef BASE_ANDROID_JAVA_HANDLER_THREAD_H_ 5 #ifndef BASE_ANDROID_JAVA_HANDLER_THREAD_H_
6 #define BASE_ANDROID_JAVA_HANDLER_THREAD_H_ 6 #define BASE_ANDROID_JAVA_HANDLER_THREAD_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 23 matching lines...) Expand all
34 34
35 // Called from java on the newly created thread. 35 // Called from java on the newly created thread.
36 // Start() will not return before this methods has finished. 36 // Start() will not return before this methods has finished.
37 void InitializeThread(JNIEnv* env, 37 void InitializeThread(JNIEnv* env,
38 const JavaParamRef<jobject>& obj, 38 const JavaParamRef<jobject>& obj,
39 jlong event); 39 jlong event);
40 void StopThread(JNIEnv* env, 40 void StopThread(JNIEnv* env,
41 const JavaParamRef<jobject>& obj, 41 const JavaParamRef<jobject>& obj,
42 jlong event); 42 jlong event);
43 43
44 virtual void StartMessageLoop();
45 virtual void StopMessageLoop();
46
44 static bool RegisterBindings(JNIEnv* env); 47 static bool RegisterBindings(JNIEnv* env);
45 48
49 protected:
50 std::unique_ptr<base::MessageLoop> message_loop_;
51
46 private: 52 private:
47 std::unique_ptr<base::MessageLoop> message_loop_;
48 ScopedJavaGlobalRef<jobject> java_thread_; 53 ScopedJavaGlobalRef<jobject> java_thread_;
49 }; 54 };
50 55
51 } // namespace android 56 } // namespace android
52 } // namespace base 57 } // namespace base
53 58
54 #endif // BASE_ANDROID_JAVA_HANDLER_THREAD_H_ 59 #endif // BASE_ANDROID_JAVA_HANDLER_THREAD_H_
OLDNEW
« no previous file with comments | « base/android/java/src/org/chromium/base/SystemMessageHandler.java ('k') | base/android/java_handler_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698