Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_RENDERER_MEDIA_MEDIA_LOAD_DELEGATE_H_ | |
| 6 #define WEBKIT_RENDERER_MEDIA_MEDIA_LOAD_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/callback_forward.h" | |
| 9 | |
| 10 namespace webkit_media { | |
| 11 | |
| 12 // Allows embedders to control when media players will start loading resources. | |
| 13 class MediaLoadDelegate { | |
| 14 public: | |
| 15 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.
| |
| 16 virtual ~MediaLoadDelegate() {} | |
| 17 | |
| 18 // Called to defer loading. Implementors can run |closure| to continue | |
| 19 // loading the media resource. | |
| 20 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
| |
| 21 }; | |
| 22 | |
| 23 } // namespace webkit_media | |
| 24 | |
| 25 #endif // WEBKIT_RENDERER_MEDIA_MEDIA_LOAD_DELEGATE_H_ | |
| OLD | NEW |