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

Unified Diff: content/renderer/render_frame_impl.h

Issue 1399603003: Tie multibuffers to URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_cache
Patch Set: added MEDIA_BLINK_EXPORT Created 5 years, 2 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: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 918c6559f3983b4a265d2183da9818f477332159..1354d61e76ebd0f7bc2c3f5994841a923b814ff7 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -11,6 +11,7 @@
#include "base/files/file_path.h"
#include "base/gtest_prod_util.h"
#include "base/id_map.h"
+#include "base/memory/linked_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
@@ -78,6 +79,8 @@ class Rect;
namespace media {
class CdmFactory;
class MediaPermission;
+class MediaServiceProvider;
+class ResourceMultiBuffer;
class WebEncryptedMediaClientImpl;
}
@@ -1004,6 +1007,9 @@ class CONTENT_EXPORT RenderFrameImpl
// The CDM factory attached to this frame, lazily initialized.
scoped_ptr<media::CdmFactory> cdm_factory_;
+ // Media resource cache, lazily initialized.
+ linked_ptr<media::ResourceMultiBuffer> resource_multibuffer_;
+
#if defined(VIDEO_HOLE)
// Whether or not this RenderFrameImpl contains a media player. Used to
// register as an observer for video-hole-specific events.

Powered by Google App Engine
This is Rietveld 408576698