| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 class WebBlobData; | 38 class WebBlobData; |
| 39 class WebString; | 39 class WebString; |
| 40 class WebThreadSafeData; | 40 class WebThreadSafeData; |
| 41 class WebURL; | 41 class WebURL; |
| 42 | 42 |
| 43 class WebBlobRegistry { | 43 class WebBlobRegistry { |
| 44 public: | 44 public: |
| 45 virtual ~WebBlobRegistry() { } | 45 virtual ~WebBlobRegistry() { } |
| 46 | 46 |
| 47 virtual void registerBlobData(const blink::WebString& uuid, const blink::Web
BlobData&) { } | 47 virtual void registerBlobData(const WebString& uuid, const WebBlobData&) { } |
| 48 virtual void addBlobDataRef(const blink::WebString& uuid) { } | 48 virtual void addBlobDataRef(const WebString& uuid) { } |
| 49 virtual void removeBlobDataRef(const blink::WebString& uuid) { } | 49 virtual void removeBlobDataRef(const WebString& uuid) { } |
| 50 virtual void registerPublicBlobURL(const blink::WebURL&, const blink::WebStr
ing& uuid) { } | 50 virtual void registerPublicBlobURL(const WebURL&, const WebString& uuid) { } |
| 51 virtual void revokePublicBlobURL(const blink::WebURL&) { } | 51 virtual void revokePublicBlobURL(const WebURL&) { } |
| 52 | 52 |
| 53 // Registers a stream URL referring to a stream with the specified media | 53 // Registers a stream URL referring to a stream with the specified media |
| 54 // type. | 54 // type. |
| 55 virtual void registerStreamURL(const WebURL&, const WebString&) { BLINK_ASSE
RT_NOT_REACHED(); } | 55 virtual void registerStreamURL(const WebURL&, const WebString&) { BLINK_ASSE
RT_NOT_REACHED(); } |
| 56 | 56 |
| 57 // Registers a stream URL referring to the stream identified by the | 57 // Registers a stream URL referring to the stream identified by the |
| 58 // specified srcURL. | 58 // specified srcURL. |
| 59 virtual void registerStreamURL(const WebURL&, const WebURL& srcURL) { BLINK_
ASSERT_NOT_REACHED(); }; | 59 virtual void registerStreamURL(const WebURL&, const WebURL& srcURL) { BLINK_
ASSERT_NOT_REACHED(); }; |
| 60 | 60 |
| 61 // Add data to the stream referred by the URL. | 61 // Add data to the stream referred by the URL. |
| 62 virtual void addDataToStream(const WebURL&, WebThreadSafeData&) { BLINK_ASSE
RT_NOT_REACHED(); } | 62 virtual void addDataToStream(const WebURL&, WebThreadSafeData&) { BLINK_ASSE
RT_NOT_REACHED(); } |
| 63 | 63 |
| 64 // Tell the registry that construction of this stream has completed | 64 // Tell the registry that construction of this stream has completed |
| 65 // successfully and so it won't receive any more data. | 65 // successfully and so it won't receive any more data. |
| 66 virtual void finalizeStream(const WebURL&) { BLINK_ASSERT_NOT_REACHED(); } | 66 virtual void finalizeStream(const WebURL&) { BLINK_ASSERT_NOT_REACHED(); } |
| 67 | 67 |
| 68 // Tell the registry that construction of this stream has been aborted and | 68 // Tell the registry that construction of this stream has been aborted and |
| 69 // so it won't receive any more data. | 69 // so it won't receive any more data. |
| 70 virtual void abortStream(const WebURL&) { BLINK_ASSERT_NOT_REACHED(); } | 70 virtual void abortStream(const WebURL&) { BLINK_ASSERT_NOT_REACHED(); } |
| 71 | 71 |
| 72 // Unregisters a stream referred by the URL. | 72 // Unregisters a stream referred by the URL. |
| 73 virtual void unregisterStreamURL(const WebURL&) { BLINK_ASSERT_NOT_REACHED()
; } | 73 virtual void unregisterStreamURL(const WebURL&) { BLINK_ASSERT_NOT_REACHED()
; } |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace blink | 76 } // namespace blink |
| 77 | 77 |
| 78 #endif // WebBlobRegistry_h | 78 #endif // WebBlobRegistry_h |
| OLD | NEW |