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. | |
| 11 * | |
| 12 * {@hide not part of the official API} | |
| 13 */ | |
| 14 public abstract class CronetImplProvider { | |
|
mef
2017/01/10 23:30:03
nit: Maybe CronetProvider or CronetLoader?
kapishnikov
2017/01/17 22:29:20
Done.
| |
| 15 /** | |
| 16 * Loads implementation of {@code ICronetEngineBuilder}. | |
| 17 * | |
| 18 * @param context Android {@link Context} to use for loading. | |
| 19 * @return {@code ICronetEngineBuilder} implementation. | |
| 20 */ | |
| 21 protected abstract ICronetEngineBuilder load(Context context); | |
|
pauljensen
2017/01/11 16:48:13
rather than having every call take Context, can we
kapishnikov
2017/01/17 22:29:20
Done.
| |
| 22 | |
| 23 /** | |
| 24 * Returns the provider name. | |
| 25 * | |
| 26 * @param context application context. | |
| 27 * @return provider name. | |
| 28 */ | |
| 29 protected abstract String getName(Context context); | |
|
pauljensen
2017/01/11 16:48:13
What's the name used for? can we remove it? we'l
kapishnikov
2017/01/17 22:29:20
The name can be used by embedders to select the pr
| |
| 30 | |
| 31 /** | |
| 32 * Returns the provider version. | |
| 33 * | |
| 34 * @param context application context. | |
| 35 * @return provider version. | |
| 36 */ | |
| 37 protected abstract String getVersion(Context context); | |
| 38 } | |
| OLD | NEW |