| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 DECLARE_GC_INFO | 48 DECLARE_GC_INFO |
| 49 public: | 49 public: |
| 50 static PassRefPtr<MediaKeySession> create(ScriptExecutionContext*, MediaKeys
*, const String& keySystem); | 50 static PassRefPtr<MediaKeySession> create(ScriptExecutionContext*, MediaKeys
*, const String& keySystem); |
| 51 ~MediaKeySession(); | 51 ~MediaKeySession(); |
| 52 | 52 |
| 53 virtual void trace(Visitor* visitor) | 53 virtual void trace(Visitor* visitor) |
| 54 { | 54 { |
| 55 visitor->trace(m_scriptExecutionContext); | 55 visitor->trace(m_scriptExecutionContext); |
| 56 } | 56 } |
| 57 | 57 |
| 58 virtual void visitWith(Visitor* visitor) const OVERRIDE | 58 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
| 59 { | 59 { |
| 60 visitor->visit(this); | 60 visitor->mark(this); |
| 61 } | 61 } |
| 62 | 62 |
| 63 const String& keySystem() const { return m_keySystem; } | 63 const String& keySystem() const { return m_keySystem; } |
| 64 const String& sessionId() const; | 64 const String& sessionId() const; |
| 65 | 65 |
| 66 void setError(MediaKeyError*); | 66 void setError(MediaKeyError*); |
| 67 MediaKeyError* error() { return m_error.get(); } | 67 MediaKeyError* error() { return m_error.get(); } |
| 68 | 68 |
| 69 void setKeys(MediaKeys* keys) { m_keys = keys; } | 69 void setKeys(MediaKeys* keys) { m_keys = keys; } |
| 70 MediaKeys* keys() const { return m_keys; } | 70 MediaKeys* keys() const { return m_keys; } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 virtual EventTargetData* ensureEventTargetData() OVERRIDE { return &m_eventT
argetData; } | 114 virtual EventTargetData* ensureEventTargetData() OVERRIDE { return &m_eventT
argetData; } |
| 115 | 115 |
| 116 EventTargetData m_eventTargetData; | 116 EventTargetData m_eventTargetData; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } | 119 } |
| 120 | 120 |
| 121 #endif // ENABLE(ENCRYPTED_MEDIA_V2) | 121 #endif // ENABLE(ENCRYPTED_MEDIA_V2) |
| 122 | 122 |
| 123 #endif // MediaKeySession_h | 123 #endif // MediaKeySession_h |
| OLD | NEW |