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

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

Issue 2626523003: Cronet: a framework for providing alternative Cronet implementations (Closed)
Patch Set: Updated api.txt 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. 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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698