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

Unified Diff: mojo/services/html_viewer/html_document.h

Issue 815293002: Support unprefixed EME in HTMLViewer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 6 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
« no previous file with comments | « no previous file | mojo/services/html_viewer/html_document.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | mojo/services/html_viewer/html_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698