| Index: Source/modules/encryptedmedia/MediaKeysController.h
|
| diff --git a/Source/modules/encryptedmedia/MediaKeysController.h b/Source/modules/encryptedmedia/MediaKeysController.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8060c1830e80daf9436d3e6d22cc89db110c63d0
|
| --- /dev/null
|
| +++ b/Source/modules/encryptedmedia/MediaKeysController.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright 2014 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 MediaKeysController_h
|
| +#define MediaKeysController_h
|
| +
|
| +#include "core/page/Page.h"
|
| +#include "wtf/PassOwnPtr.h"
|
| +
|
| +namespace blink {
|
| +class WebContentDecryptionModule;
|
| +}
|
| +
|
| +namespace WebCore {
|
| +
|
| +class ExecutionContext;
|
| +class MediaKeysClient;
|
| +
|
| +class MediaKeysController FINAL : public Supplement<Page> {
|
| +public:
|
| + virtual ~MediaKeysController();
|
| +
|
| + blink::WebContentDecryptionModule* createContentDecryptionModule(ExecutionContext*, const String& keySystem);
|
| +
|
| + static PassOwnPtr<MediaKeysController> create(MediaKeysClient*);
|
| + static const char* supplementName();
|
| + static MediaKeysController* from(Page* page) { return static_cast<MediaKeysController*>(Supplement<Page>::from(page, supplementName())); }
|
| +
|
| +protected:
|
| + explicit MediaKeysController(MediaKeysClient*);
|
| +
|
| +private:
|
| + MediaKeysClient* m_client;
|
| +};
|
| +
|
| +} // namespace WebCore
|
| +
|
| +#endif // MediaKeysController_h
|
| +
|
|
|