Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: Platform/chromium/public/WebBlobRegistry.h

Issue 11192017: ********** WebCore blob hacking (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Platform/chromium/public/WebBlobData.h ('k') | Platform/chromium/public/WebFileSystem.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Platform/chromium/public/WebBlobData.h ('k') | Platform/chromium/public/WebFileSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698