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

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

Issue 586143002: Initial implementation of Cronet Async API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync 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/cronet/android/java/src/org/chromium/net/UrlRequestFactory.java
diff --git a/components/cronet/android/java/src/org/chromium/net/UrlRequestFactory.java b/components/cronet/android/java/src/org/chromium/net/UrlRequestFactory.java
deleted file mode 100644
index 2b08e7d99472e8a07a813d78446f6f608797ebb8..0000000000000000000000000000000000000000
--- a/components/cronet/android/java/src/org/chromium/net/UrlRequestFactory.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// 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;
-
-import java.util.concurrent.Executor;
-
-/**
- * A factory for {@link UrlRequest}'s, which uses the best HTTP stack
- * available on the current platform.
- */
-public interface UrlRequestFactory {
- /**
- * Creates an UrlRequest object. All UrlRequest functions must
- * be called on the Executor's thread, and all callbacks will be called
- * on the Executor's thread as well.
- * createRequest itself may be called on any thread.
- * @param url URL for the request.
- * @param listener Callback interface that gets called on different events.
- * @param executor Executor on which all callbacks will be called.
- * @return new request.
- */
- public abstract UrlRequest createRequest(String url,
- UrlRequestListener listener, Executor executor);
-}

Powered by Google App Engine
This is Rietveld 408576698