summaryrefslogtreecommitdiffstats
path: root/webkit/media/buffered_data_source.cc
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-03 18:47:11 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-03 18:47:11 +0000
commit11d267d5ff9eb28f20ab137bcfaa606941d3156b (patch)
tree25b97ac36e65c34372b4acad34fc8816bc632147 /webkit/media/buffered_data_source.cc
parent8fd386fa4ea955ec1a0c6b3e42fd30baf17fde80 (diff)
downloadchromium_src-11d267d5ff9eb28f20ab137bcfaa606941d3156b.zip
chromium_src-11d267d5ff9eb28f20ab137bcfaa606941d3156b.tar.gz
chromium_src-11d267d5ff9eb28f20ab137bcfaa606941d3156b.tar.bz2
Report that we're no longer downloading when the resource loader has finished loading.
The end result is that we now go back to NETWORK_IDLE after the resource has loaded. BUG=139511 Review URL: https://chromiumcodereview.appspot.com/10829155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149879 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/media/buffered_data_source.cc')
-rw-r--r--webkit/media/buffered_data_source.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/webkit/media/buffered_data_source.cc b/webkit/media/buffered_data_source.cc
index abfc5d6..ef01003 100644
--- a/webkit/media/buffered_data_source.cc
+++ b/webkit/media/buffered_data_source.cc
@@ -457,17 +457,16 @@ void BufferedDataSource::LoadingStateChangedCallback(
is_downloading_data = true;
break;
case BufferedResourceLoader::kLoadingDeferred:
+ case BufferedResourceLoader::kLoadingFinished:
is_downloading_data = false;
break;
// TODO(scherkus): we don't signal network activity changes when loads
- // complete or fail to preserve existing behaviour when deferring is
- // toggled, however we considering changing DownloadingCB to also
- // propagate loading state. For example there isn't any signal today
- // to notify the client that loading has failed/finished (we only get
- // errors on subsequent reads).
+ // fail to preserve existing behaviour when deferring is toggled, however
+ // we should consider changing DownloadingCB to also propagate loading
+ // state. For example there isn't any signal today to notify the client that
+ // loading has failed (we only get errors on subsequent reads).
case BufferedResourceLoader::kLoadingFailed:
- case BufferedResourceLoader::kLoadingFinished:
return;
}