summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authorpauljensen <pauljensen@chromium.org>2015-10-20 05:27:18 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-20 12:28:19 +0000
commit34f0e234ed1d2f29ea8fa6ad62e46af592467a91 (patch)
tree24f094d5bc2c98be342e018e8aed1c70fb2efa80 /android_webview
parent9d8528855a199631499709835ea99734cf5ec560 (diff)
downloadchromium_src-34f0e234ed1d2f29ea8fa6ad62e46af592467a91.zip
chromium_src-34f0e234ed1d2f29ea8fa6ad62e46af592467a91.tar.gz
chromium_src-34f0e234ed1d2f29ea8fa6ad62e46af592467a91.tar.bz2
[Cronet] Add UrlRequestListener.onCancelled()
Leads to a more common Java pattern where the embedder can always rely on a callback at the end of a request (i.e. either onSucceeded, onFailed, or onCancelled) which is a convenient place to do cleanup. This is how Guava’s ListenableFutures/FutureCallback work. Thanks to the change from interfaces to abstract classes, we can offer a default implementation of onCancelled() so embedders aren't required to always implement their own. BUG=531538 Review URL: https://codereview.chromium.org/1386273007 Cr-Commit-Position: refs/heads/master@{#355045}
Diffstat (limited to 'android_webview')
0 files changed, 0 insertions, 0 deletions