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 | |
45 virtual ~WebBlobRegistry() { } | 44 virtual ~WebBlobRegistry() { } |
46 | 45 |
47 // Registers a blob URL referring to the specified blob data. | 46 virtual void registerBlobData(const WebString& uuid, const WebBlobData&) = 0
; // { } |
48 virtual void registerBlobURL(const WebURL&, WebBlobData&) = 0; | 47 virtual void addBlobDataRef(const WebString& uuid) { } |
49 | 48 virtual void removeBlobDataRef(const WebString& uuid) { } |
50 // Registers a blob URL referring to the blob data identified by the specifi
ed srcURL. | 49 virtual void registerPublicBlobURL(const WebURL&, const WebString& uuid) { } |
51 virtual void registerBlobURL(const WebURL&, const WebURL& srcURL) = 0; | 50 virtual void revokePublicBlobURL(const WebURL&) { } |
52 | |
53 virtual void unregisterBlobURL(const WebURL&) = 0; | |
54 }; | 51 }; |
55 | 52 |
56 } // namespace WebKit | 53 } // namespace WebKit |
57 | 54 |
58 #endif // WebBlobRegistry_h | 55 #endif // WebBlobRegistry_h |
OLD | NEW |