| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/fileapi/Stream.h" | 32 #include "core/fileapi/Stream.h" |
| 33 | 33 |
| 34 #include "platform/blob/BlobData.h" | 34 #include "platform/blob/BlobData.h" |
| 35 #include "platform/blob/BlobRegistry.h" | 35 #include "platform/blob/BlobRegistry.h" |
| 36 #include "platform/blob/BlobURL.h" | 36 #include "platform/blob/BlobURL.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 DEFINE_GC_INFO(Stream); |
| 41 |
| 40 Stream::Stream(ExecutionContext* context, const String& mediaType) | 42 Stream::Stream(ExecutionContext* context, const String& mediaType) |
| 41 : ActiveDOMObject(context) | 43 : ActiveDOMObject(context) |
| 42 , m_mediaType(mediaType) | 44 , m_mediaType(mediaType) |
| 43 , m_isNeutered(false) | 45 , m_isNeutered(false) |
| 44 { | 46 { |
| 45 ScriptWrappable::init(this); | 47 ScriptWrappable::init(this); |
| 46 | 48 |
| 47 // Create a new internal URL for a stream and register it with the provided | 49 // Create a new internal URL for a stream and register it with the provided |
| 48 // media type. | 50 // media type. |
| 49 m_internalURL = BlobURL::createInternalStreamURL(); | 51 m_internalURL = BlobURL::createInternalStreamURL(); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 { | 83 { |
| 82 } | 84 } |
| 83 | 85 |
| 84 void Stream::stop() | 86 void Stream::stop() |
| 85 { | 87 { |
| 86 neuter(); | 88 neuter(); |
| 87 abort(); | 89 abort(); |
| 88 } | 90 } |
| 89 | 91 |
| 90 } // namespace WebCore | 92 } // namespace WebCore |
| OLD | NEW |