| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_RENDERER_MEDIA_RENDERER_WEBMEDIAPLAYER_DELEGATE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_WEBMEDIAPLAYER_DELEGATE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_RENDERER_WEBMEDIAPLAYER_DELEGATE_H_ | 6 #define CONTENT_RENDERER_MEDIA_RENDERER_WEBMEDIAPLAYER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 void DidPlay(int player_id, | 51 void DidPlay(int player_id, |
| 52 bool has_video, | 52 bool has_video, |
| 53 bool has_audio, | 53 bool has_audio, |
| 54 MediaContentType media_content_type) override; | 54 MediaContentType media_content_type) override; |
| 55 void DidPause(int player_id) override; | 55 void DidPause(int player_id) override; |
| 56 void PlayerGone(int player_id) override; | 56 void PlayerGone(int player_id) override; |
| 57 void SetIdle(int player_id, bool is_idle) override; | 57 void SetIdle(int player_id, bool is_idle) override; |
| 58 bool IsIdle(int player_id) override; | 58 bool IsIdle(int player_id) override; |
| 59 void ClearStaleFlag(int player_id) override; | 59 void ClearStaleFlag(int player_id) override; |
| 60 bool IsStale(int player_id) override; | 60 bool IsStale(int player_id) override; |
| 61 void SetIsFullscreen(int player_id, bool is_fullscreen) override; |
| 62 void SetIsDominant(int player_id, bool is_dominant) override; |
| 61 | 63 |
| 62 // content::RenderFrameObserver overrides. | 64 // content::RenderFrameObserver overrides. |
| 63 void WasHidden() override; | 65 void WasHidden() override; |
| 64 void WasShown() override; | 66 void WasShown() override; |
| 65 bool OnMessageReceived(const IPC::Message& msg) override; | 67 bool OnMessageReceived(const IPC::Message& msg) override; |
| 66 void OnDestruct() override; | 68 void OnDestruct() override; |
| 67 | 69 |
| 68 // Zeros out |idle_cleanup_interval_|, sets |idle_timeout_| to |idle_timeout|, | 70 // Zeros out |idle_cleanup_interval_|, sets |idle_timeout_| to |idle_timeout|, |
| 69 // and |is_low_end_device_| to |is_low_end_device|. A zero cleanup interval | 71 // and |is_low_end_device_| to |is_low_end_device|. A zero cleanup interval |
| 70 // will cause the idle timer to run with each run of the message loop. | 72 // will cause the idle timer to run with each run of the message loop. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // Determined at construction time based on system information; determines | 148 // Determined at construction time based on system information; determines |
| 147 // when the idle cleanup timer should be fired more aggressively. | 149 // when the idle cleanup timer should be fired more aggressively. |
| 148 bool is_low_end_device_; | 150 bool is_low_end_device_; |
| 149 | 151 |
| 150 DISALLOW_COPY_AND_ASSIGN(RendererWebMediaPlayerDelegate); | 152 DISALLOW_COPY_AND_ASSIGN(RendererWebMediaPlayerDelegate); |
| 151 }; | 153 }; |
| 152 | 154 |
| 153 } // namespace media | 155 } // namespace media |
| 154 | 156 |
| 155 #endif // CONTENT_RENDERER_MEDIA_RENDERER_WEBMEDIAPLAYER_DELEGATE_H_ | 157 #endif // CONTENT_RENDERER_MEDIA_RENDERER_WEBMEDIAPLAYER_DELEGATE_H_ |
| OLD | NEW |