| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 void ApplicationCacheHost::dispatchDOMEvent(EventID id, int total, int done) | 215 void ApplicationCacheHost::dispatchDOMEvent(EventID id, int total, int done) |
| 216 { | 216 { |
| 217 if (m_domApplicationCache) { | 217 if (m_domApplicationCache) { |
| 218 const AtomicString& eventType = DOMApplicationCache::toEventType(id); | 218 const AtomicString& eventType = DOMApplicationCache::toEventType(id); |
| 219 RefPtr<Event> event; | 219 RefPtr<Event> event; |
| 220 if (id == PROGRESS_EVENT) | 220 if (id == PROGRESS_EVENT) |
| 221 event = ProgressEvent::create(eventType, true, done, total); | 221 event = ProgressEvent::create(eventType, true, done, total); |
| 222 else | 222 else |
| 223 event = Event::create(eventType, false, false); | 223 event = Event::create(eventType, false, false); |
| 224 m_domApplicationCache->dispatchEvent(event, ASSERT_NO_EXCEPTION_STATE); | 224 m_domApplicationCache->dispatchEvent(event, ASSERT_NO_EXCEPTION); |
| 225 } | 225 } |
| 226 } | 226 } |
| 227 | 227 |
| 228 ApplicationCacheHost::Status ApplicationCacheHost::status() const | 228 ApplicationCacheHost::Status ApplicationCacheHost::status() const |
| 229 { | 229 { |
| 230 return m_internal ? static_cast<Status>(m_internal->m_outerHost->status()) :
UNCACHED; | 230 return m_internal ? static_cast<Status>(m_internal->m_outerHost->status()) :
UNCACHED; |
| 231 } | 231 } |
| 232 | 232 |
| 233 bool ApplicationCacheHost::update() | 233 bool ApplicationCacheHost::update() |
| 234 { | 234 { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 250 } | 250 } |
| 251 | 251 |
| 252 bool ApplicationCacheHost::isApplicationCacheEnabled() | 252 bool ApplicationCacheHost::isApplicationCacheEnabled() |
| 253 { | 253 { |
| 254 ASSERT(m_documentLoader->frame()); | 254 ASSERT(m_documentLoader->frame()); |
| 255 return m_documentLoader->frame()->settings() | 255 return m_documentLoader->frame()->settings() |
| 256 && m_documentLoader->frame()->settings()->offlineWebApplicationCacheE
nabled(); | 256 && m_documentLoader->frame()->settings()->offlineWebApplicationCacheE
nabled(); |
| 257 } | 257 } |
| 258 | 258 |
| 259 } // namespace WebCore | 259 } // namespace WebCore |
| OLD | NEW |