Index: webkit/renderer/media/media_load_delegate.h |
diff --git a/webkit/renderer/media/media_load_delegate.h b/webkit/renderer/media/media_load_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..29a760271928694dbe7e3d8ef99f4b3302f9bb2d |
--- /dev/null |
+++ b/webkit/renderer/media/media_load_delegate.h |
@@ -0,0 +1,25 @@ |
+// 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 WEBKIT_RENDERER_MEDIA_MEDIA_LOAD_DELEGATE_H_ |
+#define WEBKIT_RENDERER_MEDIA_MEDIA_LOAD_DELEGATE_H_ |
+ |
+#include "base/callback_forward.h" |
+ |
+namespace webkit_media { |
+ |
+// Allows embedders to control when media players will start loading resources. |
+class MediaLoadDelegate { |
+ public: |
+ MediaLoadDelegate() {} |
jam
2013/06/28 21:59:40
nit: no constructor needed in the interface (see o
scherkus (not reviewing)
2013/07/02 01:46:23
Done.
|
+ virtual ~MediaLoadDelegate() {} |
+ |
+ // Called to defer loading. Implementors can run |closure| to continue |
+ // loading the media resource. |
+ virtual void DeferLoad(const base::Closure& closure) = 0; |
jam
2013/06/28 21:59:40
actually, if this is an interface with only one me
scherkus (not reviewing)
2013/07/02 01:46:23
I'm not 100% sure what you're referring to ... so
|
+}; |
+ |
+} // namespace webkit_media |
+ |
+#endif // WEBKIT_RENDERER_MEDIA_MEDIA_LOAD_DELEGATE_H_ |