| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 ApplicationCacheHost* cacheHost = applicationCacheHost(); | 65 ApplicationCacheHost* cacheHost = applicationCacheHost(); |
| 66 if (!cacheHost) | 66 if (!cacheHost) |
| 67 return ApplicationCacheHost::UNCACHED; | 67 return ApplicationCacheHost::UNCACHED; |
| 68 return cacheHost->status(); | 68 return cacheHost->status(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 void DOMApplicationCache::update(ExceptionCode& ec) | 71 void DOMApplicationCache::update(ExceptionCode& ec) |
| 72 { | 72 { |
| 73 ApplicationCacheHost* cacheHost = applicationCacheHost(); | 73 ApplicationCacheHost* cacheHost = applicationCacheHost(); |
| 74 if (!cacheHost || !cacheHost->update()) | 74 if (!cacheHost || !cacheHost->update()) |
| 75 ec = INVALID_STATE_ERR; | 75 ec = InvalidStateError; |
| 76 } | 76 } |
| 77 | 77 |
| 78 void DOMApplicationCache::swapCache(ExceptionCode& ec) | 78 void DOMApplicationCache::swapCache(ExceptionCode& ec) |
| 79 { | 79 { |
| 80 ApplicationCacheHost* cacheHost = applicationCacheHost(); | 80 ApplicationCacheHost* cacheHost = applicationCacheHost(); |
| 81 if (!cacheHost || !cacheHost->swapCache()) | 81 if (!cacheHost || !cacheHost->swapCache()) |
| 82 ec = INVALID_STATE_ERR; | 82 ec = InvalidStateError; |
| 83 } | 83 } |
| 84 | 84 |
| 85 void DOMApplicationCache::abort() | 85 void DOMApplicationCache::abort() |
| 86 { | 86 { |
| 87 ApplicationCacheHost* cacheHost = applicationCacheHost(); | 87 ApplicationCacheHost* cacheHost = applicationCacheHost(); |
| 88 if (cacheHost) | 88 if (cacheHost) |
| 89 cacheHost->abort(); | 89 cacheHost->abort(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 const AtomicString& DOMApplicationCache::interfaceName() const | 92 const AtomicString& DOMApplicationCache::interfaceName() const |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 { | 129 { |
| 130 return &m_eventTargetData; | 130 return &m_eventTargetData; |
| 131 } | 131 } |
| 132 | 132 |
| 133 EventTargetData* DOMApplicationCache::ensureEventTargetData() | 133 EventTargetData* DOMApplicationCache::ensureEventTargetData() |
| 134 { | 134 { |
| 135 return &m_eventTargetData; | 135 return &m_eventTargetData; |
| 136 } | 136 } |
| 137 | 137 |
| 138 } // namespace WebCore | 138 } // namespace WebCore |
| OLD | NEW |