CronetUrlRequest$3.smali

.class Laegon/chrome/net/impl/CronetUrlRequest$3;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic this$0:Laegon/chrome/net/impl/CronetUrlRequest;

.field final synthetic val$newLocation:Ljava/lang/String;

.field final synthetic val$responseInfo:Laegon/chrome/net/impl/UrlResponseInfoImpl;


# direct methods
.method constructor <init>(Laegon/chrome/net/impl/CronetUrlRequest;Laegon/chrome/net/impl/UrlResponseInfoImpl;Ljava/lang/String;)V
    .registers 4

    iput-object p1, p0, Laegon/chrome/net/impl/CronetUrlRequest$3;->this$0:Laegon/chrome/net/impl/CronetUrlRequest;

    iput-object p2, p0, Laegon/chrome/net/impl/CronetUrlRequest$3;->val$responseInfo:Laegon/chrome/net/impl/UrlResponseInfoImpl;

    iput-object p3, p0, Laegon/chrome/net/impl/CronetUrlRequest$3;->val$newLocation:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 5

    iget-object v0, p0, Laegon/chrome/net/impl/CronetUrlRequest$3;->this$0:Laegon/chrome/net/impl/CronetUrlRequest;

    invoke-virtual {v0}, Laegon/chrome/net/impl/CronetUrlRequest;->checkCallingThread()V

    iget-object v0, p0, Laegon/chrome/net/impl/CronetUrlRequest$3;->this$0:Laegon/chrome/net/impl/CronetUrlRequest;

    # getter for: Laegon/chrome/net/impl/CronetUrlRequest;->mUrlRequestAdapterLock:Ljava/lang/Object;
    invoke-static {v0}, Laegon/chrome/net/impl/CronetUrlRequest;->access$100(Laegon/chrome/net/impl/CronetUrlRequest;)Ljava/lang/Object;

    move-result-object v1

    monitor-enter v1

    :try_start_c
    iget-object v0, p0, Laegon/chrome/net/impl/CronetUrlRequest$3;->this$0:Laegon/chrome/net/impl/CronetUrlRequest;

    # invokes: Laegon/chrome/net/impl/CronetUrlRequest;->isDoneLocked()Z
    invoke-static {v0}, Laegon/chrome/net/impl/CronetUrlRequest;->access$200(Laegon/chrome/net/impl/CronetUrlRequest;)Z

    move-result v0

    if-eqz v0, :cond_16

    monitor-exit v1

    :goto_15
    return-void

    :cond_16
    iget-object v0, p0, Laegon/chrome/net/impl/CronetUrlRequest$3;->this$0:Laegon/chrome/net/impl/CronetUrlRequest;

    const/4 v2, 0x1

    # setter for: Laegon/chrome/net/impl/CronetUrlRequest;->mWaitingOnRedirect:Z
    invoke-static {v0, v2}, Laegon/chrome/net/impl/CronetUrlRequest;->access$1002(Laegon/chrome/net/impl/CronetUrlRequest;Z)Z

    monitor-exit v1
    :try_end_1d
    .catchall {:try_start_c .. :try_end_1d} :catchall_34

    :try_start_1d
    iget-object v0, p0, Laegon/chrome/net/impl/CronetUrlRequest$3;->this$0:Laegon/chrome/net/impl/CronetUrlRequest;

    # getter for: Laegon/chrome/net/impl/CronetUrlRequest;->mCallback:Laegon/chrome/net/impl/VersionSafeCallbacks$UrlRequestCallback;
    invoke-static {v0}, Laegon/chrome/net/impl/CronetUrlRequest;->access$500(Laegon/chrome/net/impl/CronetUrlRequest;)Laegon/chrome/net/impl/VersionSafeCallbacks$UrlRequestCallback;

    move-result-object v0

    iget-object v1, p0, Laegon/chrome/net/impl/CronetUrlRequest$3;->this$0:Laegon/chrome/net/impl/CronetUrlRequest;

    iget-object v2, p0, Laegon/chrome/net/impl/CronetUrlRequest$3;->val$responseInfo:Laegon/chrome/net/impl/UrlResponseInfoImpl;

    iget-object v3, p0, Laegon/chrome/net/impl/CronetUrlRequest$3;->val$newLocation:Ljava/lang/String;

    invoke-virtual {v0, v1, v2, v3}, Laegon/chrome/net/impl/VersionSafeCallbacks$UrlRequestCallback;->onRedirectReceived(Laegon/chrome/net/UrlRequest;Laegon/chrome/net/UrlResponseInfo;Ljava/lang/String;)V
    :try_end_2c
    .catch Ljava/lang/Exception; {:try_start_1d .. :try_end_2c} :catch_2d

    goto :goto_15

    :catch_2d
    move-exception v0

    iget-object v1, p0, Laegon/chrome/net/impl/CronetUrlRequest$3;->this$0:Laegon/chrome/net/impl/CronetUrlRequest;

    # invokes: Laegon/chrome/net/impl/CronetUrlRequest;->onCallbackException(Ljava/lang/Exception;)V
    invoke-static {v1, v0}, Laegon/chrome/net/impl/CronetUrlRequest;->access$600(Laegon/chrome/net/impl/CronetUrlRequest;Ljava/lang/Exception;)V

    goto :goto_15

    :catchall_34
    move-exception v0

    :try_start_35
    monitor-exit v1
    :try_end_36
    .catchall {:try_start_35 .. :try_end_36} :catchall_34

    throw v0
.end method