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

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

Issue 520093002: Initial declaration of Cronet Async API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync Created 6 years, 3 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/java/src/org/chromium/net/ChromiumAsyncUrlRequest.java
diff --git a/components/cronet/android/java/src/org/chromium/net/ChromiumAsyncUrlRequest.java b/components/cronet/android/java/src/org/chromium/net/ChromiumAsyncUrlRequest.java
new file mode 100644
index 0000000000000000000000000000000000000000..e51d113383f1ec6084e7371e0e4a0f264112d00b
--- /dev/null
+++ b/components/cronet/android/java/src/org/chromium/net/ChromiumAsyncUrlRequest.java
@@ -0,0 +1,50 @@
+// 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;
+
+/**
+ * Async request using the native HTTP stack implementation.
+ */
+public class ChromiumAsyncUrlRequest implements AsyncUrlRequest {
+ @Override
+ public void setHttpMethod(String method) {
+
+ }
+
+ @Override
+ public void addHeader(String header, String value) {
+
+ }
+
+ @Override
+ public void start(AsyncUrlRequestListener listener) {
+
+ }
+
+ @Override
+ public void cancel() {
+
+ }
+
+ @Override
+ public boolean isCanceled() {
+ return false;
+ }
+
+ @Override
+ public void pause() {
+
+ }
+
+ @Override
+ public boolean isPaused() {
+ return false;
+ }
+
+ @Override
+ public void resume() {
+
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698