OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Motorola Mobility Inc. | 2 * Copyright (C) 2012 Motorola Mobility Inc. |
3 * Copyright (C) 2013 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2013 Google Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 10 matching lines...) Expand all Loading... |
21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 #include "core/html/PublicURLManager.h" | 28 #include "core/html/PublicURLManager.h" |
29 | 29 |
30 #include "core/html/URLRegistry.h" | 30 #include "core/html/URLRegistry.h" |
31 #include "weborigin/KURL.h" | 31 #include "platform/weborigin/KURL.h" |
32 #include "wtf/text/StringHash.h" | 32 #include "wtf/text/StringHash.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 PassOwnPtr<PublicURLManager> PublicURLManager::create(ExecutionContext* context) | 36 PassOwnPtr<PublicURLManager> PublicURLManager::create(ExecutionContext* context) |
37 { | 37 { |
38 OwnPtr<PublicURLManager> publicURLManager(adoptPtr(new PublicURLManager(cont
ext))); | 38 OwnPtr<PublicURLManager> publicURLManager(adoptPtr(new PublicURLManager(cont
ext))); |
39 publicURLManager->suspendIfNeeded(); | 39 publicURLManager->suspendIfNeeded(); |
40 return publicURLManager.release(); | 40 return publicURLManager.release(); |
41 } | 41 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 m_isStopped = true; | 75 m_isStopped = true; |
76 for (RegistryURLMap::iterator i = m_registryToURL.begin(); i != m_registryTo
URL.end(); ++i) { | 76 for (RegistryURLMap::iterator i = m_registryToURL.begin(); i != m_registryTo
URL.end(); ++i) { |
77 for (URLSet::iterator j = i->value.begin(); j != i->value.end(); ++j) | 77 for (URLSet::iterator j = i->value.begin(); j != i->value.end(); ++j) |
78 i->key->unregisterURL(KURL(ParsedURLString, *j)); | 78 i->key->unregisterURL(KURL(ParsedURLString, *j)); |
79 } | 79 } |
80 | 80 |
81 m_registryToURL.clear(); | 81 m_registryToURL.clear(); |
82 } | 82 } |
83 | 83 |
84 } | 84 } |
OLD | NEW |