JavaUrlRequest$7.smali
.class Laegon/chrome/net/impl/JavaUrlRequest$7;
.super Ljava/lang/Object;
# interfaces
.implements Laegon/chrome/net/impl/JavaUrlRequest$CheckedRunnable;
# instance fields
.field final synthetic this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# direct methods
.method constructor <init>(Laegon/chrome/net/impl/JavaUrlRequest;)V
.registers 2
iput-object p1, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 10
const/4 v6, 0x1
const/4 v7, 0x0
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mState:Ljava/util/concurrent/atomic/AtomicReference;
invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2200(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/util/concurrent/atomic/AtomicReference;
move-result-object v0
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
const/16 v1, 0x8
if-ne v0, v1, :cond_17
:goto_16
return-void
:cond_17
new-instance v0, Ljava/net/URL;
iget-object v1, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrl:Ljava/lang/String;
invoke-static {v1}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1000(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrlConnection:Ljava/net/HttpURLConnection;
invoke-static {v1}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1400(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/net/HttpURLConnection;
move-result-object v1
if-eqz v1, :cond_39
iget-object v1, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrlConnection:Ljava/net/HttpURLConnection;
invoke-static {v1}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1400(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/net/HttpURLConnection;
move-result-object v1
invoke-virtual {v1}, Ljava/net/HttpURLConnection;->disconnect()V
iget-object v1, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
const/4 v2, 0x0
# setter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrlConnection:Ljava/net/HttpURLConnection;
invoke-static {v1, v2}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1402(Laegon/chrome/net/impl/JavaUrlRequest;Ljava/net/HttpURLConnection;)Ljava/net/HttpURLConnection;
:cond_39
iget-object v1, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
invoke-virtual {v0}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;
move-result-object v0
check-cast v0, Ljava/net/HttpURLConnection;
# setter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrlConnection:Ljava/net/HttpURLConnection;
invoke-static {v1, v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1402(Laegon/chrome/net/impl/JavaUrlRequest;Ljava/net/HttpURLConnection;)Ljava/net/HttpURLConnection;
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrlConnection:Ljava/net/HttpURLConnection;
invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1400(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/net/HttpURLConnection;
move-result-object v0
invoke-virtual {v0, v7}, Ljava/net/HttpURLConnection;->setInstanceFollowRedirects(Z)V
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mRequestHeaders:Ljava/util/Map;
invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2300(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/util/Map;
move-result-object v0
const-string v1, "User-Agent"
invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_6c
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mRequestHeaders:Ljava/util/Map;
invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2300(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/util/Map;
move-result-object v0
const-string v1, "User-Agent"
iget-object v2, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mUserAgent:Ljava/lang/String;
invoke-static {v2}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2400(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/lang/String;
move-result-object v2
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_6c
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mRequestHeaders:Ljava/util/Map;
invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2300(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/util/Map;
move-result-object v0
invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_7a
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_9c
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map$Entry;
iget-object v1, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrlConnection:Ljava/net/HttpURLConnection;
invoke-static {v1}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1400(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/net/HttpURLConnection;
move-result-object v3
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
invoke-virtual {v3, v1, v0}, Ljava/net/HttpURLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_7a
:cond_9c
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mInitialMethod:Ljava/lang/String;
invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2500(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_ab
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
const-string v1, "GET"
# setter for: Laegon/chrome/net/impl/JavaUrlRequest;->mInitialMethod:Ljava/lang/String;
invoke-static {v0, v1}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2502(Laegon/chrome/net/impl/JavaUrlRequest;Ljava/lang/String;)Ljava/lang/String;
:cond_ab
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrlConnection:Ljava/net/HttpURLConnection;
invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1400(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/net/HttpURLConnection;
move-result-object v0
iget-object v1, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mInitialMethod:Ljava/lang/String;
invoke-static {v1}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2500(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mUploadDataProvider:Laegon/chrome/net/impl/VersionSafeCallbacks$UploadDataProviderWrapper;
invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2000(Laegon/chrome/net/impl/JavaUrlRequest;)Laegon/chrome/net/impl/VersionSafeCallbacks$UploadDataProviderWrapper;
move-result-object v0
if-eqz v0, :cond_100
iget-object v8, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
new-instance v0, Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;
iget-object v1, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
iget-object v2, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mUploadExecutor:Ljava/util/concurrent/Executor;
invoke-static {v2}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2700(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/util/concurrent/Executor;
move-result-object v2
iget-object v3, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mExecutor:Ljava/util/concurrent/Executor;
invoke-static {v3}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2800(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/util/concurrent/Executor;
move-result-object v3
iget-object v4, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrlConnection:Ljava/net/HttpURLConnection;
invoke-static {v4}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1400(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/net/HttpURLConnection;
move-result-object v4
iget-object v5, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mUploadDataProvider:Laegon/chrome/net/impl/VersionSafeCallbacks$UploadDataProviderWrapper;
invoke-static {v5}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2000(Laegon/chrome/net/impl/JavaUrlRequest;)Laegon/chrome/net/impl/VersionSafeCallbacks$UploadDataProviderWrapper;
move-result-object v5
invoke-direct/range {v0 .. v5}, Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;-><init>(Laegon/chrome/net/impl/JavaUrlRequest;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Ljava/net/HttpURLConnection;Laegon/chrome/net/impl/VersionSafeCallbacks$UploadDataProviderWrapper;)V
# setter for: Laegon/chrome/net/impl/JavaUrlRequest;->mOutputStreamDataSink:Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;
invoke-static {v8, v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2602(Laegon/chrome/net/impl/JavaUrlRequest;Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;)Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mOutputStreamDataSink:Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;
invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$2600(Laegon/chrome/net/impl/JavaUrlRequest;)Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;
move-result-object v1
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mUrlChain:Ljava/util/List;
invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1100(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-ne v0, v6, :cond_fe
move v0, v6
:goto_f9
invoke-virtual {v1, v0}, Laegon/chrome/net/impl/JavaUrlRequest$OutputStreamDataSink;->start(Z)V
goto/16 :goto_16
:cond_fe
move v0, v7
goto :goto_f9
:cond_100
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
const/16 v1, 0xa
# setter for: Laegon/chrome/net/impl/JavaUrlRequest;->mAdditionalStatusDetails:I
invoke-static {v0, v1}, Laegon/chrome/net/impl/JavaUrlRequest;->access$702(Laegon/chrome/net/impl/JavaUrlRequest;I)I
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# getter for: Laegon/chrome/net/impl/JavaUrlRequest;->mCurrentUrlConnection:Ljava/net/HttpURLConnection;
invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$1400(Laegon/chrome/net/impl/JavaUrlRequest;)Ljava/net/HttpURLConnection;
move-result-object v0
invoke-virtual {v0}, Ljava/net/HttpURLConnection;->connect()V
iget-object v0, p0, Laegon/chrome/net/impl/JavaUrlRequest$7;->this$0:Laegon/chrome/net/impl/JavaUrlRequest;
# invokes: Laegon/chrome/net/impl/JavaUrlRequest;->fireGetHeaders()V
invoke-static {v0}, Laegon/chrome/net/impl/JavaUrlRequest;->access$900(Laegon/chrome/net/impl/JavaUrlRequest;)V
goto/16 :goto_16
.end method