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

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

Issue 2169553002: Properly throw java exceptions from shouldOverrideUrlLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused file. 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_ANDROID_JAVA_MESSAGE_HANDLER_FACTORY_H_
6 #define BASE_ANDROID_JAVA_MESSAGE_HANDLER_FACTORY_H_
7
8 #include "base/android/scoped_java_ref.h"
9 #include "base/message_loop/message_pump.h"
10
11 namespace base {
12
13 class MessagePumpForUI;
14
15 namespace android {
16
17 /**
18 * Factory for creating the Java-side system message handler - only used for
19 * testing.
20 */
21 class JavaMessageHandlerFactory {
22 public:
23 JavaMessageHandlerFactory() {}
danakj 2016/08/17 18:40:15 dont need this
gsennton 2016/08/17 19:23:46 Done.
24 virtual ~JavaMessageHandlerFactory() {}
25 virtual base::android::ScopedJavaLocalRef<jobject> CreateMessageHandler(
26 JNIEnv* env,
27 base::MessagePump::Delegate* delegate,
28 MessagePumpForUI* message_pump,
29 WaitableEvent* test_done_event) = 0;
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(JavaMessageHandlerFactory);
danakj 2016/08/17 18:40:15 or this, for a pure virtual interface
gsennton 2016/08/17 19:23:46 Done.
33 };
34
35 } // namespace android
36 } // namespace base
37
38 #endif // BASE_ANDROID_JAVA_MESSAGE_HANDLER_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698