| OLD | NEW | 
|    1 // Copyright 2013 The Chromium Authors. All rights reserved. |    1 // Copyright 2013 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 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |    5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 
|    6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |    6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 
|    7  |    7  | 
|    8 #include <stdint.h> |    8 #include <stdint.h> | 
|    9  |    9  | 
|   10 #include <memory> |   10 #include <memory> | 
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  211   // TODO(hubbe): WMPI_CAST make private. |  211   // TODO(hubbe): WMPI_CAST make private. | 
|  212   void OnPipelineSeeked(bool time_updated); |  212   void OnPipelineSeeked(bool time_updated); | 
|  213  |  213  | 
|  214   // Distinct states that |delegate_| can be in. |  214   // Distinct states that |delegate_| can be in. | 
|  215   // TODO(sandersd): This should move into WebMediaPlayerDelegate. |  215   // TODO(sandersd): This should move into WebMediaPlayerDelegate. | 
|  216   // (Public for testing.) |  216   // (Public for testing.) | 
|  217   enum class DelegateState { |  217   enum class DelegateState { | 
|  218     GONE, |  218     GONE, | 
|  219     PLAYING, |  219     PLAYING, | 
|  220     PAUSED, |  220     PAUSED, | 
|  221     PAUSED_BUT_NOT_IDLE, |  | 
|  222     ENDED, |  221     ENDED, | 
|  223   }; |  222   }; | 
|  224  |  223  | 
|  225   // Playback state variables computed together in UpdatePlayState(). |  224   // Playback state variables computed together in UpdatePlayState(). | 
|  226   // (Public for testing.) |  225   // (Public for testing.) | 
|  227   struct PlayState { |  226   struct PlayState { | 
|  228     DelegateState delegate_state; |  227     DelegateState delegate_state; | 
|  229     bool is_memory_reporting_enabled; |  228     bool is_memory_reporting_enabled; | 
|  230     bool is_suspended; |  229     bool is_suspended; | 
|  231   }; |  230   }; | 
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  549   // Number of times we've reached BUFFERING_HAVE_NOTHING during playback. |  548   // Number of times we've reached BUFFERING_HAVE_NOTHING during playback. | 
|  550   int underflow_count_; |  549   int underflow_count_; | 
|  551   std::unique_ptr<base::ElapsedTimer> underflow_timer_; |  550   std::unique_ptr<base::ElapsedTimer> underflow_timer_; | 
|  552  |  551  | 
|  553   DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |  552   DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 
|  554 }; |  553 }; | 
|  555  |  554  | 
|  556 }  // namespace media |  555 }  // namespace media | 
|  557  |  556  | 
|  558 #endif  // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |  557 #endif  // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 
| OLD | NEW |