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

Unified Diff: content/browser/media/media_web_contents_observer.h

Issue 1810213002: media: Allow WMPI to send playing started notification while playing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/media/media_web_contents_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/media_web_contents_observer.h
diff --git a/content/browser/media/media_web_contents_observer.h b/content/browser/media/media_web_contents_observer.h
index 93e21981fb79d756bd1c9eb6a3a7bbe002b8d08d..891d7c8be1fef3a3eb104457dea8d04abed1bb9e 100644
--- a/content/browser/media/media_web_contents_observer.h
+++ b/content/browser/media/media_web_contents_observer.h
@@ -9,7 +9,6 @@
#include <map>
#include <set>
-#include <vector>
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
@@ -79,8 +78,8 @@ class CONTENT_EXPORT MediaWebContentsObserver : public WebContentsObserver {
void MaybeReleasePowerSaveBlockers();
// Helper methods for adding or removing player entries in |player_map|.
- using PlayerList = std::vector<int>;
- using ActiveMediaPlayerMap = std::map<RenderFrameHost*, PlayerList>;
+ using PlayerSet = std::set<int>;
+ using ActiveMediaPlayerMap = std::map<RenderFrameHost*, PlayerSet>;
void AddMediaPlayerEntry(const MediaPlayerId& id,
ActiveMediaPlayerMap* player_map);
// Returns true if an entry is actually removed.
« no previous file with comments | « no previous file | content/browser/media/media_web_contents_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698