| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "bindings/core/v8/ScriptPromise.h" | 29 #include "bindings/core/v8/ScriptPromise.h" |
| 30 #include "bindings/core/v8/ScriptWrappable.h" | 30 #include "bindings/core/v8/ScriptWrappable.h" |
| 31 #include "core/dom/ContextLifecycleObserver.h" | 31 #include "core/dom/ContextLifecycleObserver.h" |
| 32 #include "wtf/Forward.h" | 32 #include "wtf/Forward.h" |
| 33 #include "wtf/text/WTFString.h" | 33 #include "wtf/text/WTFString.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 class WebContentDecryptionModule; | 36 class WebContentDecryptionModule; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace blink { |
| 40 | 40 |
| 41 class ExceptionState; | 41 class ExceptionState; |
| 42 class ExecutionContext; | 42 class ExecutionContext; |
| 43 class HTMLMediaElement; | 43 class HTMLMediaElement; |
| 44 class ScriptState; | 44 class ScriptState; |
| 45 | 45 |
| 46 // References are held by JS and HTMLMediaElement. | 46 // References are held by JS and HTMLMediaElement. |
| 47 // The WebContentDecryptionModule has the same lifetime as this object. | 47 // The WebContentDecryptionModule has the same lifetime as this object. |
| 48 class MediaKeys : public GarbageCollectedFinalized<MediaKeys>, public ContextLif
ecycleObserver, public ScriptWrappable { | 48 class MediaKeys : public GarbageCollectedFinalized<MediaKeys>, public ContextLif
ecycleObserver, public ScriptWrappable { |
| 49 public: | 49 public: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 67 friend class MediaKeysInitializer; | 67 friend class MediaKeysInitializer; |
| 68 MediaKeys(ExecutionContext*, const String& keySystem, PassOwnPtr<blink::WebC
ontentDecryptionModule>); | 68 MediaKeys(ExecutionContext*, const String& keySystem, PassOwnPtr<blink::WebC
ontentDecryptionModule>); |
| 69 | 69 |
| 70 const String m_keySystem; | 70 const String m_keySystem; |
| 71 OwnPtr<blink::WebContentDecryptionModule> m_cdm; | 71 OwnPtr<blink::WebContentDecryptionModule> m_cdm; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } | 74 } |
| 75 | 75 |
| 76 #endif // MediaKeys_h | 76 #endif // MediaKeys_h |
| OLD | NEW |