mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1476552 - GeckoSession::WebResponseInfo Kotlin annotations and static r=sebastian
MozReview-Commit-ID: 1HWEStKaGVl Bug 1476552 part 1 - Add @NonNull/@Nullable annotations to GeckoSession::WebResponseInfo for Kotlin interoperability Bug 1476552 part 2 - Make GeckoSession::WebResponseInfo static MozReview-Commit-ID: 4ce92G7i2nz Differential Revision: https://phabricator.services.mozilla.com/D2885 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
adae89f267
commit
27f61415a8
@ -2069,27 +2069,27 @@ public class GeckoSession extends LayerSession
|
||||
/**
|
||||
* WebResponseInfo contains information about a single web response.
|
||||
*/
|
||||
public class WebResponseInfo {
|
||||
static public class WebResponseInfo {
|
||||
/**
|
||||
* The URI of the response. Cannot be null.
|
||||
*/
|
||||
public final String uri;
|
||||
@NonNull public final String uri;
|
||||
|
||||
/**
|
||||
* The content type (mime type) of the response. May be null.
|
||||
*/
|
||||
public final String contentType;
|
||||
@Nullable public final String contentType;
|
||||
|
||||
/**
|
||||
* The content length of the response. May be 0 if unknokwn.
|
||||
*/
|
||||
public final long contentLength;
|
||||
@Nullable public final long contentLength;
|
||||
|
||||
/**
|
||||
* The filename obtained from the content disposition, if any.
|
||||
* May be null.
|
||||
*/
|
||||
public final String filename;
|
||||
@Nullable public final String filename;
|
||||
|
||||
/* package */ WebResponseInfo(GeckoBundle message) {
|
||||
uri = message.getString("uri");
|
||||
|
Loading…
Reference in New Issue
Block a user