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

Unified Diff: net/cronet/android/java/src/org/chromium/net/HttpUrlRequestListener.java

Issue 183333002: Cronet Java wrappers to fallback to HttpUrlConnection if Cronet is not available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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: net/cronet/android/java/src/org/chromium/net/HttpUrlRequestListener.java
diff --git a/net/cronet/android/java/src/org/chromium/net/HttpUrlRequestListener.java b/net/cronet/android/java/src/org/chromium/net/HttpUrlRequestListener.java
new file mode 100644
index 0000000000000000000000000000000000000000..b1e671032e21efc85a659d61842ac3f8c2989294
--- /dev/null
+++ b/net/cronet/android/java/src/org/chromium/net/HttpUrlRequestListener.java
@@ -0,0 +1,17 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.net;
+
+/**
+ * Callback interface.
+ */
+public interface HttpUrlRequestListener {
+
+ /**
+ * The listener should completely process the response in the callback method.
+ * Immediately after the callback, the request object will be recycled.
+ */
+ void onRequestComplete(HttpUrlRequest request);
+}

Powered by Google App Engine
This is Rietveld 408576698