Index: components/devtools_bridge/test/android/client/web_client_android.h |
diff --git a/components/devtools_bridge/test/android/client/web_client_android.h b/components/devtools_bridge/test/android/client/web_client_android.h |
index 9bca5bca91699c0757c1c1b474909bb101bedfd7..624c1535e18fd7f8e759372fd92cd1d2b7a4d93d 100644 |
--- a/components/devtools_bridge/test/android/client/web_client_android.h |
+++ b/components/devtools_bridge/test/android/client/web_client_android.h |
@@ -7,6 +7,7 @@ |
#include <jni.h> |
+#include "base/android/scoped_java_ref.h" |
#include "components/devtools_bridge/client/web_client.h" |
class Profile; |
@@ -21,11 +22,19 @@ class WebClientAndroid : private WebClient::Delegate { |
public: |
static bool RegisterNatives(JNIEnv* env); |
- WebClientAndroid(Profile* profile); |
+ WebClient& impl() { return *impl_.get(); } |
+ |
+ WebClientAndroid(Profile* profile, JNIEnv* env, jobject j_delegate); |
~WebClientAndroid(); |
private: |
+ void SendCommand( |
+ const base::DictionaryValue* command, |
+ const WebClient::CommandSuccessCallback& sucess_callback, |
+ const WebClient::CommandFailureCallback& failure_callback) override; |
+ |
scoped_ptr<WebClient> impl_; |
+ base::android::ScopedJavaGlobalRef<jobject> delegate_; |
}; |
} // namespace android |