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

Side by Side Diff: third_party/WebKit/Source/core/events/ApplicationCacheErrorEvent.cpp

Issue 2270293002: Replace ASSERT*() with DCHECK*() in core/events/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: isUnreachableNode -> checkReachableNode Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/events/ApplicationCacheErrorEvent.h" 5 #include "core/events/ApplicationCacheErrorEvent.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 static const String& errorReasonToString(WebApplicationCacheHost::ErrorReason re ason) 9 static const String& errorReasonToString(WebApplicationCacheHost::ErrorReason re ason)
10 { 10 {
(...skipping 17 matching lines...) Expand all
28 return errorChanged; 28 return errorChanged;
29 case WebApplicationCacheHost::AbortError: 29 case WebApplicationCacheHost::AbortError:
30 return errorAbort; 30 return errorAbort;
31 case WebApplicationCacheHost::QuotaError: 31 case WebApplicationCacheHost::QuotaError:
32 return errorQuota; 32 return errorQuota;
33 case WebApplicationCacheHost::PolicyError: 33 case WebApplicationCacheHost::PolicyError:
34 return errorPolicy; 34 return errorPolicy;
35 case WebApplicationCacheHost::UnknownError: 35 case WebApplicationCacheHost::UnknownError:
36 return errorUnknown; 36 return errorUnknown;
37 } 37 }
38 ASSERT_NOT_REACHED(); 38 NOTREACHED();
39 return emptyString(); 39 return emptyString();
40 } 40 }
41 41
42 ApplicationCacheErrorEvent::ApplicationCacheErrorEvent() 42 ApplicationCacheErrorEvent::ApplicationCacheErrorEvent()
43 { 43 {
44 } 44 }
45 45
46 ApplicationCacheErrorEvent::ApplicationCacheErrorEvent(WebApplicationCacheHost:: ErrorReason reason, const String& url, int status, const String& message) 46 ApplicationCacheErrorEvent::ApplicationCacheErrorEvent(WebApplicationCacheHost:: ErrorReason reason, const String& url, int status, const String& message)
47 : Event(EventTypeNames::error, false, false) 47 : Event(EventTypeNames::error, false, false)
48 , m_reason(errorReasonToString(reason)) 48 , m_reason(errorReasonToString(reason))
(...skipping 20 matching lines...) Expand all
69 ApplicationCacheErrorEvent::~ApplicationCacheErrorEvent() 69 ApplicationCacheErrorEvent::~ApplicationCacheErrorEvent()
70 { 70 {
71 } 71 }
72 72
73 DEFINE_TRACE(ApplicationCacheErrorEvent) 73 DEFINE_TRACE(ApplicationCacheErrorEvent)
74 { 74 {
75 Event::trace(visitor); 75 Event::trace(visitor);
76 } 76 }
77 77
78 } // namespace blink 78 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698