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

Unified Diff: Source/modules/serviceworkers/Cache.cpp

Issue 630403002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules/serviceworkers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/serviceworkers/Cache.h ('k') | Source/modules/serviceworkers/CacheStorage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Cache.cpp
diff --git a/Source/modules/serviceworkers/Cache.cpp b/Source/modules/serviceworkers/Cache.cpp
index 7c8f7ef3f3db4b0ff4d19af8fd74af3cb05817bc..0de7be13a0f0ad13824139799b4f8cbb41fbfa61 100644
--- a/Source/modules/serviceworkers/Cache.cpp
+++ b/Source/modules/serviceworkers/Cache.cpp
@@ -35,13 +35,13 @@ public:
CacheMatchCallbacks(PassRefPtr<ScriptPromiseResolver> resolver)
: m_resolver(resolver) { }
- virtual void onSuccess(WebServiceWorkerResponse* webResponse) OVERRIDE
+ virtual void onSuccess(WebServiceWorkerResponse* webResponse) override
{
m_resolver->resolve(Response::create(m_resolver->scriptState()->executionContext(), *webResponse));
m_resolver.clear();
}
- virtual void onError(WebServiceWorkerCacheError* reason) OVERRIDE
+ virtual void onError(WebServiceWorkerCacheError* reason) override
{
m_resolver->reject(Cache::domExceptionForCacheError(*reason));
m_resolver.clear();
@@ -58,7 +58,7 @@ public:
CacheWithResponsesCallbacks(PassRefPtr<ScriptPromiseResolver> resolver)
: m_resolver(resolver) { }
- virtual void onSuccess(WebVector<WebServiceWorkerResponse>* webResponses) OVERRIDE
+ virtual void onSuccess(WebVector<WebServiceWorkerResponse>* webResponses) override
{
HeapVector<Member<Response> > responses;
for (size_t i = 0; i < webResponses->size(); ++i)
@@ -67,7 +67,7 @@ public:
m_resolver.clear();
}
- virtual void onError(WebServiceWorkerCacheError* reason) OVERRIDE
+ virtual void onError(WebServiceWorkerCacheError* reason) override
{
m_resolver->reject(Cache::domExceptionForCacheError(*reason));
m_resolver.clear();
@@ -84,7 +84,7 @@ public:
CacheWithOneResponseCallbacks(PassRefPtr<ScriptPromiseResolver> resolver)
: CacheWithResponsesCallbacks(resolver) { }
- virtual void onSuccess(WebVector<WebServiceWorkerResponse>* webResponses) OVERRIDE
+ virtual void onSuccess(WebVector<WebServiceWorkerResponse>* webResponses) override
{
ASSERT(webResponses->size() == 1);
m_resolver->resolve(Response::create(m_resolver->scriptState()->executionContext(), (*webResponses)[0]));
@@ -99,13 +99,13 @@ public:
CacheDeleteCallback(PassRefPtr<ScriptPromiseResolver> resolver)
: m_resolver(resolver) { }
- virtual void onSuccess(WebVector<WebServiceWorkerResponse>* webResponses) OVERRIDE
+ virtual void onSuccess(WebVector<WebServiceWorkerResponse>* webResponses) override
{
m_resolver->resolve(true);
m_resolver.clear();
}
- virtual void onError(WebServiceWorkerCacheError* reason) OVERRIDE
+ virtual void onError(WebServiceWorkerCacheError* reason) override
{
if (*reason == WebServiceWorkerCacheErrorNotFound)
m_resolver->resolve(false);
@@ -125,7 +125,7 @@ public:
CacheWithRequestsCallbacks(PassRefPtr<ScriptPromiseResolver> resolver)
: m_resolver(resolver) { }
- virtual void onSuccess(WebVector<WebServiceWorkerRequest>* webRequests) OVERRIDE
+ virtual void onSuccess(WebVector<WebServiceWorkerRequest>* webRequests) override
{
HeapVector<Member<Request> > requests;
for (size_t i = 0; i < webRequests->size(); ++i)
@@ -134,7 +134,7 @@ public:
m_resolver.clear();
}
- virtual void onError(WebServiceWorkerCacheError* reason) OVERRIDE
+ virtual void onError(WebServiceWorkerCacheError* reason) override
{
m_resolver->reject(Cache::domExceptionForCacheError(*reason));
m_resolver.clear();
« no previous file with comments | « Source/modules/serviceworkers/Cache.h ('k') | Source/modules/serviceworkers/CacheStorage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698