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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Source/core/fileapi/FileReader.cpp ('k') | Source/core/html/PublicURLManager.cpp » ('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) 2012 Motorola Mobility Inc. 2 * Copyright (C) 2012 Motorola Mobility Inc.
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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 27 matching lines...) Expand all
38 class ExecutionContext; 38 class ExecutionContext;
39 class SecurityOrigin; 39 class SecurityOrigin;
40 class URLRegistry; 40 class URLRegistry;
41 class URLRegistrable; 41 class URLRegistrable;
42 42
43 class PublicURLManager FINAL : public ActiveDOMObject { 43 class PublicURLManager FINAL : public ActiveDOMObject {
44 WTF_MAKE_FAST_ALLOCATED; 44 WTF_MAKE_FAST_ALLOCATED;
45 public: 45 public:
46 static PassOwnPtr<PublicURLManager> create(ExecutionContext*); 46 static PassOwnPtr<PublicURLManager> create(ExecutionContext*);
47 47
48 void registerURL(SecurityOrigin*, const KURL&, URLRegistrable*); 48 void registerURL(SecurityOrigin*, const KURL&, URLRegistrable*, const String & uuid = String());
49 void revoke(const KURL&); 49 void revoke(const KURL&);
50 void revoke(const String& uuid);
50 51
51 // ActiveDOMObject interface. 52 // ActiveDOMObject interface.
52 virtual void stop() OVERRIDE; 53 virtual void stop() OVERRIDE;
53 54
54 private: 55 private:
55 PublicURLManager(ExecutionContext*); 56 PublicURLManager(ExecutionContext*);
56 57
57 typedef HashSet<String> URLSet; 58 // One or more URLs can be associated with the same unique ID.
58 typedef HashMap<URLRegistry*, URLSet > RegistryURLMap; 59 // Objects need be revoked by unique ID in some cases.
60 typedef String URLString;
61 typedef HashMap<URLString, String> URLMap;
62 typedef HashMap<URLRegistry*, URLMap> RegistryURLMap;
63
59 RegistryURLMap m_registryToURL; 64 RegistryURLMap m_registryToURL;
60 bool m_isStopped; 65 bool m_isStopped;
61 }; 66 };
62 67
63 } // namespace WebCore 68 } // namespace WebCore
64 69
65 #endif // PUBLICURLMANAGER_h 70 #endif // PublicURLManager_h
OLDNEW
« 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