Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: third_party/WebKit/Source/core/streams/Stream.h

Issue 2467233002: Remove "legacy" experimental stream support (Closed)
Patch Set: fix Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef Stream_h 31 #ifndef Stream_h
32 #define Stream_h 32 #define Stream_h
33 33
34 #include "bindings/core/v8/ScriptWrappable.h"
35 #include "core/CoreExport.h" 34 #include "core/CoreExport.h"
36 #include "core/dom/ActiveDOMObject.h" 35 #include "core/dom/ActiveDOMObject.h"
37 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
38 #include "platform/weborigin/KURL.h" 37 #include "platform/weborigin/KURL.h"
39 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
40 39
41 namespace blink { 40 namespace blink {
42 41
43 class ExecutionContext; 42 class ExecutionContext;
44 43
45 class CORE_EXPORT Stream final : public GarbageCollectedFinalized<Stream>, 44 class CORE_EXPORT Stream final : public GarbageCollectedFinalized<Stream>,
46 public ScriptWrappable,
47 public ActiveDOMObject { 45 public ActiveDOMObject {
48 USING_GARBAGE_COLLECTED_MIXIN(Stream); 46 USING_GARBAGE_COLLECTED_MIXIN(Stream);
49 DEFINE_WRAPPERTYPEINFO();
50 47
51 public: 48 public:
52 static Stream* create(ExecutionContext* context, const String& mediaType) { 49 static Stream* create(ExecutionContext* context, const String& mediaType) {
53 Stream* stream = new Stream(context, mediaType); 50 Stream* stream = new Stream(context, mediaType);
54 stream->suspendIfNeeded(); 51 stream->suspendIfNeeded();
55 return stream; 52 return stream;
56 } 53 }
57 54
58 ~Stream() override; 55 ~Stream() override;
59 56
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 KURL m_internalURL; 95 KURL m_internalURL;
99 96
100 String m_mediaType; 97 String m_mediaType;
101 98
102 bool m_isNeutered; 99 bool m_isNeutered;
103 }; 100 };
104 101
105 } // namespace blink 102 } // namespace blink
106 103
107 #endif // Stream_h 104 #endif // Stream_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core_idl_files.gni ('k') | third_party/WebKit/Source/core/streams/Stream.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698