OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Builds the blob. All calls to append* are invalid after calling this | 78 // Builds the blob. All calls to append* are invalid after calling this |
79 // method. | 79 // method. |
80 virtual void build() = 0; | 80 virtual void build() = 0; |
81 }; | 81 }; |
82 | 82 |
83 virtual ~WebBlobRegistry() {} | 83 virtual ~WebBlobRegistry() {} |
84 | 84 |
85 // TODO(dmurph): Deprecate and migrate to createBuilder | 85 // TODO(dmurph): Deprecate and migrate to createBuilder |
86 virtual void registerBlobData(const WebString& uuid, const WebBlobData&) {} | 86 virtual void registerBlobData(const WebString& uuid, const WebBlobData&) {} |
87 | 87 |
88 // The blob is finalized (and sent to the browser) on calling build() on the B
uilder object. | 88 // The blob is finalized (and sent to the browser) on calling build() on the |
| 89 // Builder object. |
89 virtual std::unique_ptr<Builder> createBuilder( | 90 virtual std::unique_ptr<Builder> createBuilder( |
90 const WebString& uuid, | 91 const WebString& uuid, |
91 const WebString& contentType) = 0; | 92 const WebString& contentType) = 0; |
92 | 93 |
93 virtual void addBlobDataRef(const WebString& uuid) {} | 94 virtual void addBlobDataRef(const WebString& uuid) {} |
94 virtual void removeBlobDataRef(const WebString& uuid) {} | 95 virtual void removeBlobDataRef(const WebString& uuid) {} |
95 virtual void registerPublicBlobURL(const WebURL&, const WebString& uuid) {} | 96 virtual void registerPublicBlobURL(const WebURL&, const WebString& uuid) {} |
96 virtual void revokePublicBlobURL(const WebURL&) {} | 97 virtual void revokePublicBlobURL(const WebURL&) {} |
97 | 98 |
98 // Registers a stream URL referring to a stream with the specified media | 99 // Registers a stream URL referring to a stream with the specified media |
(...skipping 20 matching lines...) Expand all Loading... |
119 // so it won't receive any more data. | 120 // so it won't receive any more data. |
120 virtual void abortStream(const WebURL&) = 0; | 121 virtual void abortStream(const WebURL&) = 0; |
121 | 122 |
122 // Unregisters a stream referred by the URL. | 123 // Unregisters a stream referred by the URL. |
123 virtual void unregisterStreamURL(const WebURL&) = 0; | 124 virtual void unregisterStreamURL(const WebURL&) = 0; |
124 }; | 125 }; |
125 | 126 |
126 } // namespace blink | 127 } // namespace blink |
127 | 128 |
128 #endif // WebBlobRegistry_h | 129 #endif // WebBlobRegistry_h |
OLD | NEW |