Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: Source/web/ApplicationCacheHost.cpp

Issue 22417002: Rename ASSERT_NO_EXCEPTION_STATE and IGNORE_EXCEPTION_STATE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/modules/websockets/MainThreadWebSocketChannel.cpp ('k') | Source/web/ContextMenuClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698