Index: mojo/services/html_viewer/html_document.h |
diff --git a/mojo/services/html_viewer/html_document.h b/mojo/services/html_viewer/html_document.h |
index 516a17e5d6a2c942e95f4e46c613475d0e6bf596..bf14ff3be67811ebd1647edaf89763accc8cbdbf 100644 |
--- a/mojo/services/html_viewer/html_document.h |
+++ b/mojo/services/html_viewer/html_document.h |
@@ -28,6 +28,10 @@ namespace base { |
class MessageLoopProxy; |
} |
+namespace media { |
+class WebEncryptedMediaClientImpl; |
+} |
+ |
namespace mojo { |
class ViewManager; |
class View; |
@@ -97,6 +101,7 @@ class HTMLDocument : public blink::WebViewClient, |
virtual void didNavigateWithinPage(blink::WebLocalFrame* frame, |
const blink::WebHistoryItem& history_item, |
blink::WebHistoryCommitType commit_type); |
+ virtual blink::WebEncryptedMediaClient* encryptedMediaClient(); |
// ViewManagerDelegate methods: |
void OnEmbed( |
@@ -131,6 +136,9 @@ class HTMLDocument : public blink::WebViewClient, |
scoped_refptr<base::MessageLoopProxy> compositor_thread_; |
WebMediaPlayerFactory* web_media_player_factory_; |
+ // EncryptedMediaClient attached to this frame; lazily initialized. |
+ media::WebEncryptedMediaClientImpl* web_encrypted_media_client_; |
+ |
// HTMLDocument owns these pointers. |
std::set<AxProviderImpl*> ax_provider_impls_; |