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

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

Issue 566833003: Rename Cronet AsyncUrlRequestXYZ interfaces into UrlRequestXYZ. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.net; 5 package org.chromium.net;
6 6
7 import java.util.concurrent.Executor; 7 import java.util.concurrent.Executor;
8 8
9 /** 9 /**
10 * A factory for {@link AsyncUrlRequest}'s, which uses the best HTTP stack 10 * A factory for {@link UrlRequest}'s, which uses the best HTTP stack
11 * available on the current platform. 11 * available on the current platform.
12 */ 12 */
13 public abstract class AsyncUrlRequestFactory { 13 public interface UrlRequestFactory {
14 /** 14 /**
15 * Creates an AsyncUrlRequest object. All AsyncUrlRequest functions must 15 * Creates an UrlRequest object. All UrlRequest functions must
16 * be called on the Executor's thread, and all callbacks will be called 16 * be called on the Executor's thread, and all callbacks will be called
17 * on the Executor's thread as well. 17 * on the Executor's thread as well.
18 * createAsyncRequest itself may be called on any thread. 18 * createRequest itself may be called on any thread.
19 * @param url URL for the request. 19 * @param url URL for the request.
20 * @param listener Callback interface that gets called on different events. 20 * @param listener Callback interface that gets called on different events.
21 * @param executor Executor on which all callbacks will be called. 21 * @param executor Executor on which all callbacks will be called.
22 * @return new request. 22 * @return new request.
23 */ 23 */
24 public abstract AsyncUrlRequest createAsyncRequest(String url, 24 public abstract UrlRequest createRequest(String url,
25 AsyncUrlRequestListener listener, Executor executor); 25 UrlRequestListener listener, Executor executor);
26 } 26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698