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

Unified Diff: content/browser/media/android/browser_media_player_manager.h

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version2: added group_id to PermissionRequestID class Created 7 years 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
Index: content/browser/media/android/browser_media_player_manager.h
diff --git a/content/browser/media/android/browser_media_player_manager.h b/content/browser/media/android/browser_media_player_manager.h
index 7813d92e5eac9b040f845975f0535c398e3fb88d..5f54a5f4540e15184c05e8b144a5dde8d537fc4b 100644
--- a/content/browser/media/android/browser_media_player_manager.h
+++ b/content/browser/media/android/browser_media_player_manager.h
@@ -150,6 +150,8 @@ class CONTENT_EXPORT BrowserMediaPlayerManager
void OnReleaseSession(int media_keys_id, uint32 session_id);
void OnSetMediaKeys(int player_id, int media_keys_id);
+ void OnCancelAllPendingSessionCreations(int media_keys_id);
+
#if defined(VIDEO_HOLE)
virtual void OnNotifyExternalSurface(
int player_id, bool is_request, const gfx::RectF& rect);
@@ -178,11 +180,11 @@ class CONTENT_EXPORT BrowserMediaPlayerManager
void RemoveDrmBridge(int media_keys_id);
private:
- void GenerateKeyIfAllowed(int media_keys_id,
- uint32 session_id,
- const std::string& type,
- const std::vector<uint8>& init_data,
- bool allowed);
+ void CreateSessionIfPermitted(int media_keys_id,
xhwang 2013/12/30 19:00:59 doc about what's happening if not |permitted|, and
Kibeom Kim (inactive) 2013/12/30 21:52:24 Done.
+ uint32 session_id,
+ const std::string& type,
+ const std::vector<uint8>& init_data,
+ bool permitted);
// Constructs a MediaPlayerAndroid object. Declared static to permit embedders
// to override functionality.

Powered by Google App Engine
This is Rietveld 408576698