OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ |
6 #define CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ | 6 #define CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // entries are added to |removed_players|. | 99 // entries are added to |removed_players|. |
100 void RemoveAllMediaPlayerEntries(RenderFrameHost* render_frame_host, | 100 void RemoveAllMediaPlayerEntries(RenderFrameHost* render_frame_host, |
101 ActiveMediaPlayerMap* player_map, | 101 ActiveMediaPlayerMap* player_map, |
102 std::set<MediaPlayerId>* removed_players); | 102 std::set<MediaPlayerId>* removed_players); |
103 | 103 |
104 // Tracking variables and associated power save blockers for media playback. | 104 // Tracking variables and associated power save blockers for media playback. |
105 ActiveMediaPlayerMap active_audio_players_; | 105 ActiveMediaPlayerMap active_audio_players_; |
106 ActiveMediaPlayerMap active_video_players_; | 106 ActiveMediaPlayerMap active_video_players_; |
107 std::unique_ptr<device::PowerSaveBlocker> audio_power_save_blocker_; | 107 std::unique_ptr<device::PowerSaveBlocker> audio_power_save_blocker_; |
108 std::unique_ptr<device::PowerSaveBlocker> video_power_save_blocker_; | 108 std::unique_ptr<device::PowerSaveBlocker> video_power_save_blocker_; |
109 #if defined(OS_ANDROID) | |
110 std::unique_ptr<base::WeakPtrFactory<ui::ViewAndroid>> view_weak_factory_; | |
111 #endif | |
112 | 109 |
113 MediaSessionControllersManager session_controllers_manager_; | 110 MediaSessionControllersManager session_controllers_manager_; |
114 | 111 |
115 DISALLOW_COPY_AND_ASSIGN(MediaWebContentsObserver); | 112 DISALLOW_COPY_AND_ASSIGN(MediaWebContentsObserver); |
116 }; | 113 }; |
117 | 114 |
118 } // namespace content | 115 } // namespace content |
119 | 116 |
120 #endif // CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ | 117 #endif // CONTENT_BROWSER_MEDIA_MEDIA_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |