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

Unified Diff: webkit/media/webmediaplayer_proxy.h

Issue 11226019: Encrypted Media: Replace DecryptorClient with key event callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add spec link Created 8 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: webkit/media/webmediaplayer_proxy.h
diff --git a/webkit/media/webmediaplayer_proxy.h b/webkit/media/webmediaplayer_proxy.h
index b16d267df6ae43e38ae3e841c868af87032098d6..7d9f5a235482f736f005cebd7b10b9e723837d8e 100644
--- a/webkit/media/webmediaplayer_proxy.h
+++ b/webkit/media/webmediaplayer_proxy.h
@@ -5,16 +5,9 @@
#ifndef WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_
#define WEBKIT_MEDIA_WEBMEDIAPLAYER_PROXY_H_
-#include <list>
-#include <string>
-#include <vector>
-
#include "base/memory/ref_counted.h"
#include "base/synchronization/lock.h"
-#include "media/base/decryptor_client.h"
#include "media/base/pipeline.h"
-#include "media/filters/chunk_demuxer.h"
-#include "media/filters/ffmpeg_video_decoder.h"
#include "media/filters/skcanvas_video_renderer.h"
#include "webkit/media/buffered_data_source.h"
@@ -40,8 +33,7 @@ class WebMediaPlayerImpl;
// Acts as a thread proxy between the various threads used for multimedia and
// the render thread that WebMediaPlayerImpl is running on.
class WebMediaPlayerProxy
- : public base::RefCountedThreadSafe<WebMediaPlayerProxy>,
- public media::DecryptorClient {
+ : public base::RefCountedThreadSafe<WebMediaPlayerProxy> {
public:
WebMediaPlayerProxy(const scoped_refptr<base::MessageLoopProxy>& render_loop,
WebMediaPlayerImpl* webmediaplayer);
@@ -71,23 +63,6 @@ class WebMediaPlayerProxy
void AbortDataSource();
- // DecryptorClient implementation.
- virtual void KeyAdded(const std::string& key_system,
- const std::string& session_id) OVERRIDE;
- virtual void KeyError(const std::string& key_system,
- const std::string& session_id,
- media::Decryptor::KeyError error_code,
- int system_code) OVERRIDE;
- virtual void KeyMessage(const std::string& key_system,
- const std::string& session_id,
- const std::string& message,
- const std::string& default_url) OVERRIDE;
- virtual void NeedKey(const std::string& key_system,
- const std::string& session_id,
- const std::string& type,
- scoped_array<uint8> init_data,
- int init_data_size) OVERRIDE;
-
private:
friend class base::RefCountedThreadSafe<WebMediaPlayerProxy>;
virtual ~WebMediaPlayerProxy();
@@ -95,29 +70,6 @@ class WebMediaPlayerProxy
// Invoke |webmediaplayer_| to perform a repaint.
void RepaintTask();
- // Notify |webmediaplayer_| that a key has been added.
- void KeyAddedTask(const std::string& key_system,
- const std::string& session_id);
-
- // Notify |webmediaplayer_| that a key error occurred.
- void KeyErrorTask(const std::string& key_system,
- const std::string& session_id,
- media::Decryptor::KeyError error_code,
- int system_code);
-
- // Notify |webmediaplayer_| that a key message has been generated.
- void KeyMessageTask(const std::string& key_system,
- const std::string& session_id,
- const std::string& message,
- const std::string& default_url);
-
- // Notify |webmediaplayer_| that a key is needed for decryption.
- void NeedKeyTask(const std::string& key_system,
- const std::string& session_id,
- const std::string& type,
- scoped_array<uint8> init_data,
- int init_data_size);
-
// The render message loop where WebKit lives.
scoped_refptr<base::MessageLoopProxy> render_loop_;
WebMediaPlayerImpl* webmediaplayer_;

Powered by Google App Engine
This is Rietveld 408576698