1 // Copyright 2014 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.
5 #ifndef EncryptedMediaRequest_h
6 #define EncryptedMediaRequest_h
8 #include "platform/heap/Handle.h"
13 class WebContentDecryptionModuleAccess
;
14 struct WebMediaKeySystemConfiguration
;
16 template <typename T
> class WebVector
;
18 class EncryptedMediaRequest
: public GarbageCollectedFinalized
<EncryptedMediaRequest
> {
20 virtual ~EncryptedMediaRequest() { }
22 virtual WebString
keySystem() const = 0;
23 virtual const WebVector
<WebMediaKeySystemConfiguration
>& supportedConfigurations() const = 0;
25 virtual SecurityOrigin
* securityOrigin() const = 0;
27 virtual void requestSucceeded(WebContentDecryptionModuleAccess
*) = 0;
28 virtual void requestNotSupported(const WebString
& errorMessage
) = 0;
30 DEFINE_INLINE_VIRTUAL_TRACE() { }
35 #endif // EncryptedMediaRequest_h