Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 package org.chromium.net; | |
| 6 | |
| 7 import java.net.URL; | |
| 8 import java.util.concurrent.Executor; | |
| 9 | |
| 10 /** | |
| 11 * Created by mef on 8/29/14. | |
|
mmenke
2014/09/02 19:48:03
?
mef
2014/09/03 20:58:58
Done. Autodoc. :)
| |
| 12 */ | |
| 13 public class AsyncUrlRequestFactory { | |
| 14 /** | |
| 15 * Creates an AsyncUrlRequest object. All AsyncUrlRequest functions must | |
| 16 * be called on the executor’s thread, and all callbacks will be called | |
| 17 * on the executor’s thread as well. | |
|
mmenke
2014/09/02 19:48:03
nit: Executor (x3)
mef
2014/09/03 20:58:58
Done.
| |
| 18 * createAsyncRequest itself may be called on any thread. | |
| 19 * @param url | |
| 20 * @param executor | |
| 21 * @return | |
| 22 */ | |
| 23 public AsyncUrlRequest createAsyncRequest(URL url, Executor executor) { | |
|
mef
2014/09/03 20:58:58
I think it also needs to take listener.
| |
| 24 return new ChromiumAsyncUrlRequest(); | |
| 25 } | |
| 26 } | |
| OLD | NEW |