Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: components/cronet/android/api/src/org/chromium/net/CronetImplProvider.java

Issue 2626523003: Cronet: a framework for providing alternative Cronet implementations (Closed)
Patch Set: Added context to getName() & getVersion(). Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698