| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. |
| 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 ApplicationCacheHost* cacheHost = applicationCacheHost(); | 43 ApplicationCacheHost* cacheHost = applicationCacheHost(); |
| 44 if (cacheHost) | 44 if (cacheHost) |
| 45 cacheHost->setApplicationCache(this); | 45 cacheHost->setApplicationCache(this); |
| 46 } | 46 } |
| 47 | 47 |
| 48 DEFINE_TRACE(ApplicationCache) { | 48 DEFINE_TRACE(ApplicationCache) { |
| 49 EventTargetWithInlineData::trace(visitor); | 49 EventTargetWithInlineData::trace(visitor); |
| 50 DOMWindowProperty::trace(visitor); | 50 DOMWindowProperty::trace(visitor); |
| 51 } | 51 } |
| 52 | 52 |
| 53 void ApplicationCache::frameDestroyed() { | 53 void ApplicationCache::contextDestroyed() { |
| 54 if (ApplicationCacheHost* cacheHost = applicationCacheHost()) | 54 if (ApplicationCacheHost* cacheHost = applicationCacheHost()) |
| 55 cacheHost->setApplicationCache(0); | 55 cacheHost->setApplicationCache(0); |
| 56 DOMWindowProperty::frameDestroyed(); | 56 DOMWindowProperty::contextDestroyed(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 ApplicationCacheHost* ApplicationCache::applicationCacheHost() const { | 59 ApplicationCacheHost* ApplicationCache::applicationCacheHost() const { |
| 60 if (!frame() || !frame()->loader().documentLoader()) | 60 if (!frame() || !frame()->loader().documentLoader()) |
| 61 return 0; | 61 return 0; |
| 62 return frame()->loader().documentLoader()->applicationCacheHost(); | 62 return frame()->loader().documentLoader()->applicationCacheHost(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 unsigned short ApplicationCache::status() const { | 65 unsigned short ApplicationCache::status() const { |
| 66 recordAPIUseType(); | 66 recordAPIUseType(); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } else { | 142 } else { |
| 143 Deprecation::countDeprecation( | 143 Deprecation::countDeprecation( |
| 144 document, UseCounter::ApplicationCacheAPIInsecureOrigin); | 144 document, UseCounter::ApplicationCacheAPIInsecureOrigin); |
| 145 HostsUsingFeatures::countAnyWorld( | 145 HostsUsingFeatures::countAnyWorld( |
| 146 *document, | 146 *document, |
| 147 HostsUsingFeatures::Feature::ApplicationCacheAPIInsecureHost); | 147 HostsUsingFeatures::Feature::ApplicationCacheAPIInsecureHost); |
| 148 } | 148 } |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| OLD | NEW |