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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // won't load the corresponding stream again. All stream objects are | 77 // won't load the corresponding stream again. All stream objects are |
78 // read-once for now. | 78 // read-once for now. |
79 void neuter() { m_isNeutered = true; } | 79 void neuter() { m_isNeutered = true; } |
80 bool isNeutered() const { return m_isNeutered; } | 80 bool isNeutered() const { return m_isNeutered; } |
81 | 81 |
82 // Implementation of ActiveDOMObject. | 82 // Implementation of ActiveDOMObject. |
83 // | 83 // |
84 // FIXME: Implement suspend() and resume() when necessary. | 84 // FIXME: Implement suspend() and resume() when necessary. |
85 void suspend() override; | 85 void suspend() override; |
86 void resume() override; | 86 void resume() override; |
87 void stop() override; | 87 void contextDestroyed() override; |
88 | 88 |
89 DECLARE_VIRTUAL_TRACE(); | 89 DECLARE_VIRTUAL_TRACE(); |
90 | 90 |
91 protected: | 91 protected: |
92 Stream(ExecutionContext*, const String& mediaType); | 92 Stream(ExecutionContext*, const String& mediaType); |
93 | 93 |
94 // This is an internal URL referring to the blob data associated with this obj
ect. It serves | 94 // This is an internal URL referring to the blob data associated with this obj
ect. It serves |
95 // as an identifier for this blob. The internal URL is never used to source th
e blob's content | 95 // as an identifier for this blob. The internal URL is never used to source th
e blob's content |
96 // into an HTML or for FileRead'ing, public blob URLs must be used for those p
urposes. | 96 // into an HTML or for FileRead'ing, public blob URLs must be used for those p
urposes. |
97 KURL m_internalURL; | 97 KURL m_internalURL; |
98 | 98 |
99 String m_mediaType; | 99 String m_mediaType; |
100 | 100 |
101 bool m_isNeutered; | 101 bool m_isNeutered; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace blink | 104 } // namespace blink |
105 | 105 |
106 #endif // Stream_h | 106 #endif // Stream_h |
OLD | NEW |