| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "core/dom/ActiveDOMObject.h" | 36 #include "core/dom/ActiveDOMObject.h" |
| 37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 38 #include "platform/weborigin/KURL.h" | 38 #include "platform/weborigin/KURL.h" |
| 39 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class ExecutionContext; | 43 class ExecutionContext; |
| 44 | 44 |
| 45 class CORE_EXPORT Stream final : public GarbageCollectedFinalized<Stream>, publi
c ScriptWrappable, public ActiveDOMObject { | 45 class CORE_EXPORT Stream final : public GarbageCollectedFinalized<Stream>, publi
c ScriptWrappable, public ActiveDOMObject { |
| 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Stream); | 46 USING_GARBAGE_COLLECTED_MIXIN(Stream); |
| 47 DEFINE_WRAPPERTYPEINFO(); | 47 DEFINE_WRAPPERTYPEINFO(); |
| 48 public: | 48 public: |
| 49 static Stream* create(ExecutionContext* context, const String& mediaType) | 49 static Stream* create(ExecutionContext* context, const String& mediaType) |
| 50 { | 50 { |
| 51 Stream* stream = new Stream(context, mediaType); | 51 Stream* stream = new Stream(context, mediaType); |
| 52 stream->suspendIfNeeded(); | 52 stream->suspendIfNeeded(); |
| 53 return stream; | 53 return stream; |
| 54 } | 54 } |
| 55 | 55 |
| 56 ~Stream() override; | 56 ~Stream() override; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 KURL m_internalURL; | 95 KURL m_internalURL; |
| 96 | 96 |
| 97 String m_mediaType; | 97 String m_mediaType; |
| 98 | 98 |
| 99 bool m_isNeutered; | 99 bool m_isNeutered; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace blink | 102 } // namespace blink |
| 103 | 103 |
| 104 #endif // Stream_h | 104 #endif // Stream_h |
| OLD | NEW |