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

Unified Diff: content/renderer/media/android/proxy_media_keys.h

Issue 107413006: Dismiss EME infobar when WebMediaPlayer is destroyed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/renderer/media/android/proxy_media_keys.h
diff --git a/content/renderer/media/android/proxy_media_keys.h b/content/renderer/media/android/proxy_media_keys.h
index ca5c932d883e1974b7b2b573fcce141a9e8dbfbd..a3559d846a0881ea2ddf862a0c1e16f4b26e27db 100644
--- a/content/renderer/media/android/proxy_media_keys.h
+++ b/content/renderer/media/android/proxy_media_keys.h
@@ -6,6 +6,7 @@
#define CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_
#include "base/basictypes.h"
+#include "base/containers/hash_tables.h"
#include "media/base/media_keys.h"
class GURL;
@@ -48,6 +49,7 @@ class ProxyMediaKeys : public media::MediaKeys {
const std::string& destination_url);
void OnSessionReady(uint32 session_id);
void OnSessionClosed(uint32 session_id);
+ void OnSessionApproved(uint32 session_id, bool success);
void OnSessionError(uint32 session_id,
media::MediaKeys::KeyError error_code,
int system_code);
@@ -60,6 +62,7 @@ class ProxyMediaKeys : public media::MediaKeys {
media::SessionReadyCB session_ready_cb_;
media::SessionClosedCB session_closed_cb_;
media::SessionErrorCB session_error_cb_;
+ base::hash_set<uint32> requested_session_id_;
ddorwin 2013/12/20 23:59:52 maybe session_ids_pending_create_ per later discus
xhwang 2013/12/21 00:40:48 Typically how big is this set? I wonder if using h
DISALLOW_COPY_AND_ASSIGN(ProxyMediaKeys);
};

Powered by Google App Engine
This is Rietveld 408576698