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

Side by Side Diff: components/cronet/android/java/src/org/chromium/net/impl/UrlResponseInfoImpl.java

Issue 2514783002: [Cronet] Add callback wrapper classes to enforce API version checking. (Closed)
Patch Set: fix JNIAdditionalImport Created 4 years 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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.impl; 5 package org.chromium.net.impl;
6 6
7 import org.chromium.net.UrlResponseInfo; 7 import org.chromium.net.UrlResponseInfo;
8 8
9 import java.util.ArrayList; 9 import java.util.ArrayList;
10 import java.util.Collections; 10 import java.util.Collections;
(...skipping 11 matching lines...) Expand all
22 * redirect response. 22 * redirect response.
23 */ 23 */
24 public final class UrlResponseInfoImpl extends UrlResponseInfo { 24 public final class UrlResponseInfoImpl extends UrlResponseInfo {
25 private final List<String> mResponseInfoUrlChain; 25 private final List<String> mResponseInfoUrlChain;
26 private final int mHttpStatusCode; 26 private final int mHttpStatusCode;
27 private final String mHttpStatusText; 27 private final String mHttpStatusText;
28 private final boolean mWasCached; 28 private final boolean mWasCached;
29 private final String mNegotiatedProtocol; 29 private final String mNegotiatedProtocol;
30 private final String mProxyServer; 30 private final String mProxyServer;
31 private final AtomicLong mReceivedBytesCount; 31 private final AtomicLong mReceivedBytesCount;
32 private final HeaderBlock mHeaders; 32 private final HeaderBlockImpl mHeaders;
33 33
34 /** 34 /**
35 * Unmodifiable container of response headers or trailers. 35 * Unmodifiable container of response headers or trailers.
36 */ 36 */
37 public static final class HeaderBlockImpl extends HeaderBlock { 37 public static final class HeaderBlockImpl extends HeaderBlock {
38 private final List<Map.Entry<String, String>> mAllHeadersList; 38 private final List<Map.Entry<String, String>> mAllHeadersList;
39 private Map<String, List<String>> mHeadersMap; 39 private Map<String, List<String>> mHeadersMap;
40 40
41 HeaderBlockImpl(List<Map.Entry<String, String>> allHeadersList) { 41 HeaderBlockImpl(List<Map.Entry<String, String>> allHeadersList) {
42 mAllHeadersList = allHeadersList; 42 mAllHeadersList = allHeadersList;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 getProxyServer(), getReceivedBytesCount()); 155 getProxyServer(), getReceivedBytesCount());
156 } 156 }
157 157
158 /** 158 /**
159 * Sets mReceivedBytesCount. Must not be called after request completion or cancellation. 159 * Sets mReceivedBytesCount. Must not be called after request completion or cancellation.
160 */ 160 */
161 public void setReceivedBytesCount(long currentReceivedBytesCount) { 161 public void setReceivedBytesCount(long currentReceivedBytesCount) {
162 mReceivedBytesCount.set(currentReceivedBytesCount); 162 mReceivedBytesCount.set(currentReceivedBytesCount);
163 } 163 }
164 } 164 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698