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

Side by Side Diff: base/test/android/test_system_message_handler_link_android.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
(Empty)
1 // Copyright 2016 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 #ifndef BASE_TEST_SYSTEM_MESSAGE_HANDLER_LINK_ANDROID_H
6 #define BASE_TEST_SYSTEM_MESSAGE_HANDLER_LINK_ANDROID_H
7
8 #include <jni.h>
9
10 #include "base/android/scoped_java_ref.h"
11 #include "base/message_loop/message_pump.h"
12
13 namespace base {
14
15 class MessagePumpForUI;
16 class WaitableEvent;
17
18 namespace android {
19 class TestJavaMessageHandlerFactory;
20
21 // This provides a link to (a way to create) the java-side
22 // TestSystemMessageHandler class.
23 class TestSystemMessageHandlerLink {
24 public:
25 static bool RegisterJNI(JNIEnv* env);
26
27 private:
28 friend class base::android::TestJavaMessageHandlerFactory;
29
30 TestSystemMessageHandlerLink() = delete;
31 ~TestSystemMessageHandlerLink() = delete;
32
33 static base::android::ScopedJavaLocalRef<jobject>
34 CreateTestSystemMessageHandler(JNIEnv* env,
35 base::MessagePump::Delegate* delegate,
36 MessagePumpForUI* message_pump,
37 WaitableEvent* test_done_event);
38 };
39
40 } // namespace android
41 } // namespace base
42
43 #endif // BASE_TEST_SYSTEM_MESSAGE_HANDLER_LINK_ANDROID_H
OLDNEW
« no previous file with comments | « base/test/android/java_handler_thread_for_testing.cc ('k') | base/test/android/test_system_message_handler_link_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698