| 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 16 matching lines...) Expand all Loading... |
| 27 #include "core/html/PublicURLManager.h" | 27 #include "core/html/PublicURLManager.h" |
| 28 | 28 |
| 29 #include "core/fetch/MemoryCache.h" | 29 #include "core/fetch/MemoryCache.h" |
| 30 #include "core/html/URLRegistry.h" | 30 #include "core/html/URLRegistry.h" |
| 31 #include "platform/weborigin/KURL.h" | 31 #include "platform/weborigin/KURL.h" |
| 32 #include "wtf/Vector.h" | 32 #include "wtf/Vector.h" |
| 33 #include "wtf/text/StringHash.h" | 33 #include "wtf/text/StringHash.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 PassOwnPtrWillBeRawPtr<PublicURLManager> PublicURLManager::create(ExecutionConte
xt* context) | 37 RawPtr<PublicURLManager> PublicURLManager::create(ExecutionContext* context) |
| 38 { | 38 { |
| 39 OwnPtrWillBeRawPtr<PublicURLManager> publicURLManager = adoptPtrWillBeNoop(n
ew PublicURLManager(context)); | 39 RawPtr<PublicURLManager> publicURLManager = new PublicURLManager(context); |
| 40 publicURLManager->suspendIfNeeded(); | 40 publicURLManager->suspendIfNeeded(); |
| 41 return publicURLManager.release(); | 41 return publicURLManager.release(); |
| 42 } | 42 } |
| 43 | 43 |
| 44 PublicURLManager::PublicURLManager(ExecutionContext* context) | 44 PublicURLManager::PublicURLManager(ExecutionContext* context) |
| 45 : ActiveDOMObject(context) | 45 : ActiveDOMObject(context) |
| 46 , m_isStopped(false) | 46 , m_isStopped(false) |
| 47 { | 47 { |
| 48 } | 48 } |
| 49 | 49 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 m_registryToURL.clear(); | 103 m_registryToURL.clear(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 DEFINE_TRACE(PublicURLManager) | 106 DEFINE_TRACE(PublicURLManager) |
| 107 { | 107 { |
| 108 ActiveDOMObject::trace(visitor); | 108 ActiveDOMObject::trace(visitor); |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace blink | 111 } // namespace blink |
| OLD | NEW |