Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 android.content.Context; | |
| 8 | |
| 9 /** | |
| 10 * A Cronet implementation provider. Note: every implementation of CronetProvide r | |
| 11 * must have a public constructor that accepts a single {@link Context} paramete r. | |
|
pauljensen
2017/01/18 17:03:04
what about prefacing this with something like:
<b
kapishnikov
2017/01/19 01:25:24
Done.
| |
| 12 */ | |
| 13 public abstract class CronetProvider { | |
| 14 protected final Context mContext; | |
| 15 | |
| 16 protected CronetProvider(Context context) { | |
| 17 mContext = context; | |
| 18 } | |
| 19 | |
| 20 /** | |
| 21 * Creates and returns {@link CronetEngine.Builder}. | |
| 22 * | |
| 23 * @return {@code CronetEngine.Builder}. | |
| 24 */ | |
| 25 public abstract CronetEngine.Builder createBuilder(); | |
| 26 | |
| 27 /** | |
| 28 * Returns the provider name. | |
| 29 * | |
| 30 * @return provider name. | |
| 31 */ | |
| 32 public abstract String getName(); | |
| 33 | |
| 34 /** | |
| 35 * Returns the provider version. | |
| 36 * | |
| 37 * @return provider version. | |
| 38 */ | |
| 39 public abstract String getVersion(); | |
| 40 | |
| 41 /** | |
| 42 * Returns whether the provider is enabled and can be used to instantiate th e Cronet engine. | |
| 43 * | |
| 44 * @return true if the provider is available. | |
|
mef
2017/01/18 20:57:54
nit: s/available/enabled/.
kapishnikov
2017/01/19 01:25:24
Done.
| |
| 45 */ | |
| 46 public abstract boolean isEnabled(); | |
| 47 } | |
| OLD | NEW |