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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // FIXME: This should be removed after crbug.com/425186 is fully | 56 // FIXME: This should be removed after crbug.com/425186 is fully |
57 // implemented. | 57 // implemented. |
58 const String& keySystem() const { return m_keySystem; } | 58 const String& keySystem() const { return m_keySystem; } |
59 | 59 |
60 MediaKeySession* createSession(ScriptState*, const String& sessionType, Exce
ptionState&); | 60 MediaKeySession* createSession(ScriptState*, const String& sessionType, Exce
ptionState&); |
61 | 61 |
62 ScriptPromise setServerCertificate(ScriptState*, const DOMArrayPiece& server
Certificate); | 62 ScriptPromise setServerCertificate(ScriptState*, const DOMArrayPiece& server
Certificate); |
63 | 63 |
64 blink::WebContentDecryptionModule* contentDecryptionModule(); | 64 blink::WebContentDecryptionModule* contentDecryptionModule(); |
65 | 65 |
66 virtual void trace(Visitor*) override; | 66 DECLARE_VIRTUAL_TRACE(); |
67 | 67 |
68 // ContextLifecycleObserver | 68 // ContextLifecycleObserver |
69 virtual void contextDestroyed() override; | 69 virtual void contextDestroyed() override; |
70 | 70 |
71 private: | 71 private: |
72 class PendingAction; | 72 class PendingAction; |
73 | 73 |
74 void timerFired(Timer<MediaKeys>*); | 74 void timerFired(Timer<MediaKeys>*); |
75 | 75 |
76 const String m_keySystem; | 76 const String m_keySystem; |
77 const blink::WebVector<blink::WebString> m_supportedSessionTypes; | 77 const blink::WebVector<blink::WebString> m_supportedSessionTypes; |
78 OwnPtr<blink::WebContentDecryptionModule> m_cdm; | 78 OwnPtr<blink::WebContentDecryptionModule> m_cdm; |
79 | 79 |
80 HeapDeque<Member<PendingAction>> m_pendingActions; | 80 HeapDeque<Member<PendingAction>> m_pendingActions; |
81 Timer<MediaKeys> m_timer; | 81 Timer<MediaKeys> m_timer; |
82 }; | 82 }; |
83 | 83 |
84 } // namespace blink | 84 } // namespace blink |
85 | 85 |
86 #endif // MediaKeys_h | 86 #endif // MediaKeys_h |
OLD | NEW |