Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: content/browser/media/media_web_contents_observer.h

Issue 2371723002: Power Save Blocker: Eliminate passing ViewAndroid as WeakPtr (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/devtools/render_frame_devtools_agent_host.cc ('k') | content/browser/media/media_web_contents_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698