| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.net; | 5 package org.chromium.net; |
| 6 | 6 |
| 7 import org.json.JSONException; | |
| 8 | |
| 9 /** | 7 /** |
| 10 * A config for CronetEngine, which allows runtime configuration of | 8 * A config for CronetEngine, which allows runtime configuration of |
| 11 * CronetEngine. | 9 * CronetEngine. |
| 12 * @deprecated use {@link CronetEngine.Builder} instead. | 10 * @deprecated use {@link CronetEngine.Builder} instead. |
| 13 */ | 11 */ |
| 14 public class UrlRequestContextConfig extends CronetEngine.Builder { | 12 public class UrlRequestContextConfig extends CronetEngine.Builder { |
| 15 public UrlRequestContextConfig() { | 13 public UrlRequestContextConfig() { |
| 16 // Context will be passed in later when the ChromiumUrlRequestFactory | 14 // Context will be passed in later when the ChromiumUrlRequestFactory |
| 17 // or ChromiumUrlRequestContext is created. | 15 // or ChromiumUrlRequestContext is created. |
| 18 super(null); | 16 super(null); |
| 19 } | 17 } |
| 20 | |
| 21 public UrlRequestContextConfig(String json) throws JSONException { | |
| 22 // Context will be passed in later when the ChromiumUrlRequestFactory | |
| 23 // or ChromiumUrlRequestContext is created. | |
| 24 super(null, json); | |
| 25 } | |
| 26 } | 18 } |
| OLD | NEW |