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

Unified Diff: Source/core/html/PublicURLManager.h

Issue 157363003: Implement Blob.close(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/fileapi/FileReader.cpp ('k') | Source/core/html/PublicURLManager.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/PublicURLManager.h
diff --git a/Source/core/html/PublicURLManager.h b/Source/core/html/PublicURLManager.h
index 02ae77d5a87f363f8f1112a4942846698b16f627..094d42b4204488503e9a09063a78f22e57512c82 100644
--- a/Source/core/html/PublicURLManager.h
+++ b/Source/core/html/PublicURLManager.h
@@ -45,8 +45,9 @@ class PublicURLManager FINAL : public ActiveDOMObject {
public:
static PassOwnPtr<PublicURLManager> create(ExecutionContext*);
- void registerURL(SecurityOrigin*, const KURL&, URLRegistrable*);
+ void registerURL(SecurityOrigin*, const KURL&, URLRegistrable*, const String& uuid = String());
void revoke(const KURL&);
+ void revoke(const String& uuid);
// ActiveDOMObject interface.
virtual void stop() OVERRIDE;
@@ -54,12 +55,16 @@ public:
private:
PublicURLManager(ExecutionContext*);
- typedef HashSet<String> URLSet;
- typedef HashMap<URLRegistry*, URLSet > RegistryURLMap;
+ // One or more URLs can be associated with the same unique ID.
+ // Objects need be revoked by unique ID in some cases.
+ typedef String URLString;
+ typedef HashMap<URLString, String> URLMap;
+ typedef HashMap<URLRegistry*, URLMap> RegistryURLMap;
+
RegistryURLMap m_registryToURL;
bool m_isStopped;
};
} // namespace WebCore
-#endif // PUBLICURLMANAGER_h
+#endif // PublicURLManager_h
« no previous file with comments | « Source/core/fileapi/FileReader.cpp ('k') | Source/core/html/PublicURLManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698