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

Unified Diff: webkit/renderer/media/crypto/proxy_decryptor.h

Issue 17502007: Move webkit/renderer/media/android/ to content/renderer/media/android/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix shared lib Created 7 years, 6 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 | « webkit/renderer/media/audio_decoder.h ('k') | webkit/renderer/media/crypto/proxy_decryptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/renderer/media/crypto/proxy_decryptor.h
diff --git a/webkit/renderer/media/crypto/proxy_decryptor.h b/webkit/renderer/media/crypto/proxy_decryptor.h
index f1fa6105dd4affe15d4e0154f93898ce4d6a798a..878c6e4530e548790c16752668870bfb424a43bf 100644
--- a/webkit/renderer/media/crypto/proxy_decryptor.h
+++ b/webkit/renderer/media/crypto/proxy_decryptor.h
@@ -20,10 +20,6 @@ class WebMediaPlayerClient;
namespace webkit_media {
-#if defined(OS_ANDROID) && !defined(GOOGLE_TV)
-class WebMediaPlayerProxyAndroid;
-#endif
-
// A decryptor proxy that creates a real decryptor object on demand and
// forwards decryptor calls to it.
// TODO(xhwang): Currently we don't support run-time switching among decryptor
@@ -35,10 +31,8 @@ class ProxyDecryptor : public media::MediaKeys {
#if defined(ENABLE_PEPPER_CDMS)
WebKit::WebMediaPlayerClient* web_media_player_client,
WebKit::WebFrame* web_frame,
-#endif
-#if defined(OS_ANDROID) && !defined(GOOGLE_TV)
- WebMediaPlayerProxyAndroid* proxy,
- int media_keys_id,
+#elif defined(OS_ANDROID) && !defined(GOOGLE_TV)
+ scoped_ptr<media::MediaKeys> media_keys,
#endif
const media::KeyAddedCB& key_added_cb,
const media::KeyErrorCB& key_error_cb,
@@ -92,12 +86,9 @@ class ProxyDecryptor : public media::MediaKeys {
WebKit::WebFrame* web_frame_;
#endif // defined(ENABLE_PEPPER_CDMS)
-#if defined(OS_ANDROID) && !defined(GOOGLE_TV)
- // |proxy_| must outlive this object.
- WebMediaPlayerProxyAndroid* proxy_;
-
- int media_keys_id_;
-#endif // defined(OS_ANDROID) && !defined(GOOGLE_TV)
+ // The real MediaKeys that manages key operations for the ProxyDecryptor.
+ // This pointer is protected by the |lock_|.
+ scoped_ptr<media::MediaKeys> media_keys_;
// Callbacks for firing key events.
media::KeyAddedCB key_added_cb_;
@@ -110,10 +101,6 @@ class ProxyDecryptor : public media::MediaKeys {
media::DecryptorReadyCB decryptor_ready_cb_;
- // The real MediaKeys that manages key operations for the ProxyDecryptor.
- // This pointer is protected by the |lock_|.
- scoped_ptr<media::MediaKeys> media_keys_;
-
DISALLOW_COPY_AND_ASSIGN(ProxyDecryptor);
};
« no previous file with comments | « webkit/renderer/media/audio_decoder.h ('k') | webkit/renderer/media/crypto/proxy_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698