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

Side by Side Diff: Source/core/loader/appcache/DOMApplicationCache.cpp

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | Source/core/page/DOMSelection.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 /* 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
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
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
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | Source/core/page/DOMSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698