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 CONTENT_PUBLIC_RENDERER_MEDIA_PLAYER_LOAD_DELEGATE_H_ | |
| 6 #define CONTENT_PUBLIC_RENDERER_MEDIA_PLAYER_LOAD_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/callback_forward.h" | |
| 9 #include "content/common/content_export.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 // Allows embedders to control when media players will start loading resources. | |
| 14 class CONTENT_EXPORT MediaPlayerLoadDelegate { | |
|
scherkus (not reviewing)
2013/06/28 06:04:41
open to suggestions on naming
it's a bit unwieldy
| |
| 15 public: | |
| 16 MediaPlayerLoadDelegate() {} | |
| 17 virtual ~MediaPlayerLoadDelegate() {} | |
| 18 | |
| 19 // Called to defer loading. Implementors can run |closure| to continue | |
| 20 // loading the media resource. | |
| 21 virtual void DeferLoad(const base::Closure& closure) = 0; | |
| 22 }; | |
| 23 | |
| 24 } // namespace content | |
| 25 | |
| 26 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_PLAYER_LOAD_DELEGATE_H_ | |
| OLD | NEW |