Chromium Code Reviews| Index: components/cronet/android/java/src/org/chromium/net/UrlRequest.java |
| diff --git a/components/cronet/android/java/src/org/chromium/net/UrlRequest.java b/components/cronet/android/java/src/org/chromium/net/UrlRequest.java |
| index 57a0b439101592235c74d522962acc76dd9dba37..8df71266f519361a9597ba21500bd8f89d763a32 100644 |
| --- a/components/cronet/android/java/src/org/chromium/net/UrlRequest.java |
| +++ b/components/cronet/android/java/src/org/chromium/net/UrlRequest.java |
| @@ -9,6 +9,16 @@ package org.chromium.net; |
| * Note: All methods must be called on the Executor passed in during creation. |
|
Charles
2014/09/20 00:47:34
You should enforce this by checking the calling th
mef
2014/09/22 17:12:13
Hmm, about executor, it doesn't seem to require th
Charles
2014/09/22 21:22:54
You can make sure that it's executing on the threa
|
| */ |
| public interface UrlRequest { |
| + public static final int REQUEST_PRIORITY_IDLE = 0; |
| + |
| + public static final int REQUEST_PRIORITY_LOWEST = 1; |
| + |
| + public static final int REQUEST_PRIORITY_LOW = 2; |
| + |
| + public static final int REQUEST_PRIORITY_MEDIUM = 3; |
| + |
| + public static final int REQUEST_PRIORITY_HIGHEST = 4; |
| + |
| /** |
| * More setters go here. They may only be called before start (Maybe |
| * also allow during redirects). Could optionally instead use arguments |
| @@ -35,9 +45,8 @@ public interface UrlRequest { |
| /** |
| * Starts the request, all callbacks go to listener. |
| - * @param listener |
| */ |
| - public void start(UrlRequestListener listener); |
| + public void start(); |
| /** |
| * Can be called at any time. |