OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/media/webmediaplayer_impl.h" | 5 #include "webkit/media/webmediaplayer_impl.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
871 case media::DEMUXER_ERROR_COULD_NOT_PARSE: | 871 case media::DEMUXER_ERROR_COULD_NOT_PARSE: |
872 case media::DEMUXER_ERROR_NO_SUPPORTED_STREAMS: | 872 case media::DEMUXER_ERROR_NO_SUPPORTED_STREAMS: |
873 case media::DEMUXER_ERROR_COULD_NOT_CREATE_THREAD: | 873 case media::DEMUXER_ERROR_COULD_NOT_CREATE_THREAD: |
874 case media::DECODER_ERROR_NOT_SUPPORTED: | 874 case media::DECODER_ERROR_NOT_SUPPORTED: |
875 case media::DATASOURCE_ERROR_URL_NOT_SUPPORTED: | 875 case media::DATASOURCE_ERROR_URL_NOT_SUPPORTED: |
876 // Format error. | 876 // Format error. |
877 SetNetworkState(WebMediaPlayer::NetworkStateFormatError); | 877 SetNetworkState(WebMediaPlayer::NetworkStateFormatError); |
878 break; | 878 break; |
879 | 879 |
880 case media::PIPELINE_ERROR_DECODE: | 880 case media::PIPELINE_ERROR_DECODE: |
881 case media::PIPELINE_ERROR_DECRYPT: | |
ddorwin
2012/04/20 19:18:50
WebKit now has a decrypt error. We should add a We
xhwang
2012/04/20 19:51:01
Do you mean adding something like NetworkStateDeco
ddorwin
2012/04/20 22:55:19
Right. I looked at the WebKit code more and found
xhwang
2012/04/21 00:53:01
Done.
| |
881 case media::PIPELINE_ERROR_ABORT: | 882 case media::PIPELINE_ERROR_ABORT: |
882 case media::PIPELINE_ERROR_OUT_OF_MEMORY: | 883 case media::PIPELINE_ERROR_OUT_OF_MEMORY: |
883 case media::PIPELINE_ERROR_AUDIO_HARDWARE: | 884 case media::PIPELINE_ERROR_AUDIO_HARDWARE: |
884 case media::PIPELINE_ERROR_OPERATION_PENDING: | 885 case media::PIPELINE_ERROR_OPERATION_PENDING: |
885 case media::PIPELINE_ERROR_INVALID_STATE: | 886 case media::PIPELINE_ERROR_INVALID_STATE: |
886 // Decode error. | 887 // Decode error. |
887 SetNetworkState(WebMediaPlayer::NetworkStateDecodeError); | 888 SetNetworkState(WebMediaPlayer::NetworkStateDecodeError); |
888 break; | 889 break; |
889 } | 890 } |
890 | 891 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1023 return audio_source_provider_; | 1024 return audio_source_provider_; |
1024 } | 1025 } |
1025 | 1026 |
1026 void WebMediaPlayerImpl::IncrementExternallyAllocatedMemory() { | 1027 void WebMediaPlayerImpl::IncrementExternallyAllocatedMemory() { |
1027 DCHECK_EQ(main_loop_, MessageLoop::current()); | 1028 DCHECK_EQ(main_loop_, MessageLoop::current()); |
1028 incremented_externally_allocated_memory_ = true; | 1029 incremented_externally_allocated_memory_ = true; |
1029 v8::V8::AdjustAmountOfExternalAllocatedMemory(kPlayerExtraMemory); | 1030 v8::V8::AdjustAmountOfExternalAllocatedMemory(kPlayerExtraMemory); |
1030 } | 1031 } |
1031 | 1032 |
1032 } // namespace webkit_media | 1033 } // namespace webkit_media |
OLD | NEW |