Home | History | Annotate | Download | only in encryptedmedia
      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.
      4 
      5 #ifndef MediaKeysClient_h
      6 #define MediaKeysClient_h
      7 
      8 #include "wtf/PassOwnPtr.h"
      9 #include "wtf/text/WTFString.h"
     10 
     11 namespace blink {
     12 class WebContentDecryptionModule;
     13 }
     14 
     15 namespace WebCore {
     16 
     17 class ExecutionContext;
     18 class Page;
     19 
     20 class MediaKeysClient {
     21 public:
     22     virtual PassOwnPtr<blink::WebContentDecryptionModule> createContentDecryptionModule(ExecutionContext*, const String& keySystem) = 0;
     23 
     24 protected:
     25     virtual ~MediaKeysClient() { }
     26 };
     27 
     28 void provideMediaKeysTo(Page&, MediaKeysClient*);
     29 
     30 } // namespace WebCore
     31 
     32 #endif // MediaKeysClient_h
     33 
     34