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

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: Remove unused includes in test_support_android.cc. 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 (c) 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 /**
22 * This provides a link to (a way to create) the java-side
nyquist 2016/08/18 15:50:03 Nit: This should use // style comments
gsennton 2016/08/18 18:56:55 Done.
23 * TestSystemMessageHandler class.
24 */
25 class TestSystemMessageHandlerLink {
26 public:
27 static bool RegisterJNI(JNIEnv* env);
28
29 private:
30 friend class base::android::TestJavaMessageHandlerFactory;
31
32 TestSystemMessageHandlerLink() = delete;
33 ~TestSystemMessageHandlerLink() = delete;
34
35 static base::android::ScopedJavaLocalRef<jobject>
36 createTestSystemMessageHandler(JNIEnv* env,
nyquist 2016/08/18 15:50:03 Nit: CreateTestSystemMessageHandler
gsennton 2016/08/18 18:56:55 Done.
37 base::MessagePump::Delegate* delegate,
38 MessagePumpForUI* message_pump,
39 WaitableEvent* test_done_event);
40 };
41
42 } // namespace android
43 } // namespace base
44
45 #endif // BASE_TEST_SYSTEM_MESSAGE_HANDLER_LINK_ANDROID_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698