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

Unified Diff: components/cronet/android/cronet_url_request_adapter.h

Issue 937513003: Add Data Saver support to Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed boolean from api Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/cronet/android/cronet_url_request_adapter.h
diff --git a/components/cronet/android/cronet_url_request_adapter.h b/components/cronet/android/cronet_url_request_adapter.h
index ad0d87941b870286f84d74b9bb43ffa18d709bfb..899fd7c9f3969a213e7fbc921cacc6afec2075b4 100644
--- a/components/cronet/android/cronet_url_request_adapter.h
+++ b/components/cronet/android/cronet_url_request_adapter.h
@@ -104,6 +104,11 @@ class CronetURLRequestAdapter : public net::URLRequest::Delegate {
JNIEnv* env,
jobject jcaller) const;
+ // Returns the host and port of the proxy server, if one was used.
+ base::android::ScopedJavaLocalRef<jstring> GetProxyServer(
+ JNIEnv* env,
+ jobject jcaller) const;
+
// Returns true if response is coming from the cache.
jboolean GetWasCached(JNIEnv* env, jobject jcaller) const;

Powered by Google App Engine
This is Rietveld 408576698