| 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebBlobRegistry_h | 31 #ifndef WebBlobRegistry_h |
| 32 #define WebBlobRegistry_h | 32 #define WebBlobRegistry_h |
| 33 | 33 |
| 34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
| 35 | 35 |
| 36 namespace WebKit { | 36 namespace WebKit { |
| 37 | 37 |
| 38 class WebBlobData; | 38 class WebBlobData; |
| 39 class WebString; |
| 39 class WebURL; | 40 class WebURL; |
| 40 | 41 |
| 41 class WebBlobRegistry { | 42 class WebBlobRegistry { |
| 42 public: | 43 public: |
| 43 WEBKIT_EXPORT static WebBlobRegistry* create(); | 44 virtual ~WebBlobRegistry() { } |
| 44 | 45 |
| 45 virtual ~WebBlobRegistry() { } | 46 virtual void registerBlobData(const WebString& uuid, WebBlobData&) { } |
| 47 virtual void addBlobDataRef(const WebString& uuid) { } |
| 48 virtual void removeBlobDataRef(const WebString& uuid) { } |
| 49 virtual void registerPublicBlobURL(const WebURL&, const WebString& uuid) { } |
| 50 virtual void revokePublicBlobURL(const WebURL&) { } |
| 51 |
| 52 // DEPRECATED --------- |
| 46 | 53 |
| 47 // Registers a blob URL referring to the specified blob data. | 54 // Registers a blob URL referring to the specified blob data. |
| 48 virtual void registerBlobURL(const WebURL&, WebBlobData&) = 0; | 55 virtual void registerBlobURL(const WebURL&, WebBlobData&) = 0; |
| 49 | 56 |
| 50 // Registers a blob URL referring to the blob data identified by the specifi
ed srcURL. | 57 // Registers a blob URL referring to the blob data identified by the specifi
ed srcURL. |
| 51 virtual void registerBlobURL(const WebURL&, const WebURL& srcURL) = 0; | 58 virtual void registerBlobURL(const WebURL&, const WebURL& srcURL) = 0; |
| 52 | 59 |
| 53 virtual void unregisterBlobURL(const WebURL&) = 0; | 60 virtual void unregisterBlobURL(const WebURL&) = 0; |
| 54 }; | 61 }; |
| 55 | 62 |
| 56 } // namespace WebKit | 63 } // namespace WebKit |
| 57 | 64 |
| 58 #endif // WebBlobRegistry_h | 65 #endif // WebBlobRegistry_h |
| OLD | NEW |