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

Unified Diff: Source/core/html/HTMLMediaElement.h

Issue 893123004: Check origin before providing initData in encrypted event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: mediaDataIsCORSSameOrigin Created 5 years, 10 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
Index: Source/core/html/HTMLMediaElement.h
diff --git a/Source/core/html/HTMLMediaElement.h b/Source/core/html/HTMLMediaElement.h
index 0dc35da799e764dd5957c78ea24b0b20ee1aa8b5..5219d30b703238f51d503ff86cfab4a0f13ccdb7 100644
--- a/Source/core/html/HTMLMediaElement.h
+++ b/Source/core/html/HTMLMediaElement.h
@@ -281,6 +281,9 @@ public:
enum InvalidURLAction { DoNothing, Complain };
bool isSafeToLoadURL(const KURL&, InvalidURLAction);
+ // Checks to see if |origin| is allowed access to the current src.
ddorwin 2015/02/06 21:41:33 The comment no longer matches the function name.
jrummell 2015/02/07 00:12:26 Done.
+ bool mediaDataIsCORSSameOrigin(SecurityOrigin*) const;
ddorwin 2015/02/06 21:41:33 isMediaDataCORSSameOrigin
jrummell 2015/02/07 00:12:26 Done.
+
MediaController* controller() const;
void setController(PassRefPtrWillBeRawPtr<MediaController>); // Resets the MediaGroup and sets the MediaController.

Powered by Google App Engine
This is Rietveld 408576698