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

Side by Side Diff: WebCore/html/PublicURLManager.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 | « WebCore/html/DOMURL.cpp ('k') | WebCore/page/SecurityOrigin.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
11 * notice, this list of conditions and the following disclaimer in the 11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution. 12 * documentation and/or other materials provided with the distribution.
13 * 13 *
14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef PublicURLManager_h 26 #ifndef PublicURLManager_h
27 #define PublicURLManager_h 27 #define PublicURLManager_h
28 28
29 #if ENABLE(BLOB) 29 #if ENABLE(BLOB)
30 #include "BlobRegistry.h"
30 #include "ScriptExecutionContext.h" 31 #include "ScriptExecutionContext.h"
31 #include "ThreadableBlobRegistry.h"
32 #include <wtf/HashSet.h> 32 #include <wtf/HashSet.h>
33 #include <wtf/text/WTFString.h> 33 #include <wtf/text/WTFString.h>
34 34
35 #if ENABLE(MEDIA_STREAM) 35 #if ENABLE(MEDIA_STREAM)
36 #include "MediaStream.h" 36 #include "MediaStream.h"
37 #include "MediaStreamRegistry.h" 37 #include "MediaStreamRegistry.h"
38 #endif 38 #endif
39 39
40 #if ENABLE(MEDIA_SOURCE) 40 #if ENABLE(MEDIA_SOURCE)
41 #include "MediaSource.h" 41 #include "MediaSource.h"
42 #include "MediaSourceRegistry.h" 42 #include "MediaSourceRegistry.h"
43 #endif 43 #endif
44 44
45 namespace WebCore { 45 namespace WebCore {
46 46
47 class ScriptExecutionContext; 47 class ScriptExecutionContext;
48 48
49 class PublicURLManager { 49 class PublicURLManager {
50 WTF_MAKE_FAST_ALLOCATED; 50 WTF_MAKE_FAST_ALLOCATED;
51 public: 51 public:
52 static PassOwnPtr<PublicURLManager> create() { return adoptPtr(new PublicURL Manager); } 52 static PassOwnPtr<PublicURLManager> create() { return adoptPtr(new PublicURL Manager); }
53 void contextDestroyed() 53 void contextDestroyed()
54 { 54 {
55 HashSet<String>::iterator blobURLsEnd = m_blobURLs.end(); 55 HashSet<String>::iterator blobURLsEnd = m_blobURLs.end();
56 for (HashSet<String>::iterator iter = m_blobURLs.begin(); iter != blobUR LsEnd; ++iter) 56 for (HashSet<String>::iterator iter = m_blobURLs.begin(); iter != blobUR LsEnd; ++iter)
57 ThreadableBlobRegistry::unregisterBlobURL(KURL(ParsedURLString, *ite r)); 57 blobRegistry().revokePublicBlobURL(KURL(ParsedURLString, *iter));
58 58
59 #if ENABLE(MEDIA_STREAM) 59 #if ENABLE(MEDIA_STREAM)
60 HashSet<String>::iterator streamURLsEnd = m_streamURLs.end(); 60 HashSet<String>::iterator streamURLsEnd = m_streamURLs.end();
61 for (HashSet<String>::iterator iter = m_streamURLs.begin(); iter != stre amURLsEnd; ++iter) 61 for (HashSet<String>::iterator iter = m_streamURLs.begin(); iter != stre amURLsEnd; ++iter)
62 MediaStreamRegistry::registry().unregisterMediaStreamURL(KURL(Parsed URLString, *iter)); 62 MediaStreamRegistry::registry().unregisterMediaStreamURL(KURL(Parsed URLString, *iter));
63 #endif 63 #endif
64 #if ENABLE(MEDIA_SOURCE) 64 #if ENABLE(MEDIA_SOURCE)
65 HashSet<String>::iterator sourceURLsEnd = m_sourceURLs.end(); 65 HashSet<String>::iterator sourceURLsEnd = m_sourceURLs.end();
66 for (HashSet<String>::iterator iter = m_sourceURLs.begin(); iter != sour ceURLsEnd; ++iter) 66 for (HashSet<String>::iterator iter = m_sourceURLs.begin(); iter != sour ceURLsEnd; ++iter)
67 MediaSourceRegistry::registry().unregisterMediaSourceURL(KURL(Parsed URLString, *iter)); 67 MediaSourceRegistry::registry().unregisterMediaSourceURL(KURL(Parsed URLString, *iter));
(...skipping 15 matching lines...) Expand all
83 #endif 83 #endif
84 #if ENABLE(MEDIA_SOURCE) 84 #if ENABLE(MEDIA_SOURCE)
85 HashSet<String> m_sourceURLs; 85 HashSet<String> m_sourceURLs;
86 #endif 86 #endif
87 }; 87 };
88 88
89 } // namespace WebCore 89 } // namespace WebCore
90 90
91 #endif // BLOB 91 #endif // BLOB
92 #endif // PUBLICURLMANAGER_h 92 #endif // PUBLICURLMANAGER_h
OLDNEW
« no previous file with comments | « WebCore/html/DOMURL.cpp ('k') | WebCore/page/SecurityOrigin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698