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 package org.chromium.net; | |
|
mmenke
2014/09/15 16:10:55
nit: Blank line before package
mef
2014/09/15 16:17:59
Done.
| |
| 5 | |
| 6 import java.util.concurrent.Executor; | |
| 7 | |
| 8 /** | |
| 9 * Url request factory using Chromium HTTP stack implementation. | |
| 10 */ | |
| 11 public class CronetUrlRequestFactory implements UrlRequestFactory { | |
|
mef
2014/09/15 16:17:59
I've named this 'CronetUrlRequest[Factory]' to avi
mmenke
2014/09/15 16:23:32
I think we may want to combine the two factories,
| |
| 12 @Override | |
| 13 public UrlRequest createRequest(String url, UrlRequestListener listener, | |
| 14 Executor executor) { | |
| 15 CronetUrlRequest request = new CronetUrlRequest(); | |
|
mmenke
2014/09/15 16:10:55
Any reason not to just use:
return new CronetUrlR
mef
2014/09/15 16:17:59
Done.
| |
| 16 return request; | |
| 17 } | |
| 18 } | |
| OLD | NEW |