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

Unified Diff: components/devtools_bridge/test/android/client/web_client_android.h

Issue 746663002: Stub for WebRTCDeviceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webclient
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698