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

Unified Diff: components/html_viewer/media_factory.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
« no previous file with comments | « no previous file | components/html_viewer/media_factory.cc » ('j') | components/html_viewer/media_factory.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/media_factory.h
diff --git a/components/html_viewer/media_factory.h b/components/html_viewer/media_factory.h
index 70d1f7d6388c641a934332b68989036171a2309c..d01107b76dc1e5255d91848043381b3d01dc6f89 100644
--- a/components/html_viewer/media_factory.h
+++ b/components/html_viewer/media_factory.h
@@ -6,11 +6,13 @@
#define COMPONENTS_HTML_VIEWER_MEDIA_FACTORY_H_
#include "base/macros.h"
+#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/threading/thread.h"
#include "media/audio/fake_audio_log_factory.h"
#include "media/base/audio_hardware_config.h"
+#include "media/blink/resource_multibuffer.h"
#include "media/mojo/interfaces/service_factory.mojom.h"
#include "mojo/application/public/interfaces/service_provider.mojom.h"
@@ -89,6 +91,9 @@ class MediaFactory {
scoped_ptr<media::MediaPermission> media_permission_;
scoped_ptr<media::CdmFactory> cdm_factory_;
+ // Media resource cache, lazily initialized.
+ linked_ptr<media::ResourceMultiBuffer> resource_multibuffer_;
+
DISALLOW_COPY_AND_ASSIGN(MediaFactory);
};
« no previous file with comments | « no previous file | components/html_viewer/media_factory.cc » ('j') | components/html_viewer/media_factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698