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

Unified Diff: content/public/renderer/media_player_load_delegate.h

Issue 18123002: Migrate webkit/renderer/media/ to content/renderer/media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: delegates Created 7 years, 6 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/public/renderer/media_player_load_delegate.h
diff --git a/content/public/renderer/media_player_load_delegate.h b/content/public/renderer/media_player_load_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..1f4321816357d7fc3f339074b9039a56b549b1e9
--- /dev/null
+++ b/content/public/renderer/media_player_load_delegate.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_RENDERER_MEDIA_PLAYER_LOAD_DELEGATE_H_
+#define CONTENT_PUBLIC_RENDERER_MEDIA_PLAYER_LOAD_DELEGATE_H_
+
+#include "base/callback_forward.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+// Allows embedders to control when media players will start loading resources.
+class CONTENT_EXPORT MediaPlayerLoadDelegate {
scherkus (not reviewing) 2013/06/28 06:04:41 open to suggestions on naming it's a bit unwieldy
+ public:
+ MediaPlayerLoadDelegate() {}
+ virtual ~MediaPlayerLoadDelegate() {}
+
+ // Called to defer loading. Implementors can run |closure| to continue
+ // loading the media resource.
+ virtual void DeferLoad(const base::Closure& closure) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_MEDIA_PLAYER_LOAD_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698