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

Side by Side Diff: Source/modules/serviceworkers/ServiceWorker.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 27 matching lines...) Expand all
38 #include "core/events/Event.h" 38 #include "core/events/Event.h"
39 #include "modules/EventTargetModules.h" 39 #include "modules/EventTargetModules.h"
40 #include "platform/NotImplemented.h" 40 #include "platform/NotImplemented.h"
41 #include "public/platform/WebMessagePortChannel.h" 41 #include "public/platform/WebMessagePortChannel.h"
42 #include "public/platform/WebServiceWorkerState.h" 42 #include "public/platform/WebServiceWorkerState.h"
43 #include "public/platform/WebString.h" 43 #include "public/platform/WebString.h"
44 #include <v8.h> 44 #include <v8.h>
45 45
46 namespace blink { 46 namespace blink {
47 47
48 class ServiceWorker::ThenFunction FINAL : public ScriptFunction { 48 class ServiceWorker::ThenFunction final : public ScriptFunction {
49 public: 49 public:
50 static v8::Handle<v8::Function> createFunction(ScriptState* scriptState, Pas sRefPtrWillBeRawPtr<ServiceWorker> observer) 50 static v8::Handle<v8::Function> createFunction(ScriptState* scriptState, Pas sRefPtrWillBeRawPtr<ServiceWorker> observer)
51 { 51 {
52 ThenFunction* self = new ThenFunction(scriptState, observer); 52 ThenFunction* self = new ThenFunction(scriptState, observer);
53 return self->bindToV8Function(); 53 return self->bindToV8Function();
54 } 54 }
55 55
56 virtual void trace(Visitor* visitor) OVERRIDE 56 virtual void trace(Visitor* visitor) override
57 { 57 {
58 visitor->trace(m_observer); 58 visitor->trace(m_observer);
59 ScriptFunction::trace(visitor); 59 ScriptFunction::trace(visitor);
60 } 60 }
61 61
62 private: 62 private:
63 ThenFunction(ScriptState* scriptState, PassRefPtrWillBeRawPtr<ServiceWorker> observer) 63 ThenFunction(ScriptState* scriptState, PassRefPtrWillBeRawPtr<ServiceWorker> observer)
64 : ScriptFunction(scriptState) 64 : ScriptFunction(scriptState)
65 , m_observer(observer) 65 , m_observer(observer)
66 { 66 {
67 } 67 }
68 68
69 virtual ScriptValue call(ScriptValue value) OVERRIDE 69 virtual ScriptValue call(ScriptValue value) override
70 { 70 {
71 m_observer->onPromiseResolved(); 71 m_observer->onPromiseResolved();
72 return value; 72 return value;
73 } 73 }
74 74
75 RefPtrWillBeMember<ServiceWorker> m_observer; 75 RefPtrWillBeMember<ServiceWorker> m_observer;
76 }; 76 };
77 77
78 const AtomicString& ServiceWorker::interfaceName() const 78 const AtomicString& ServiceWorker::interfaceName() const
79 { 79 {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 : AbstractWorker(executionContext) 258 : AbstractWorker(executionContext)
259 , WebServiceWorkerProxy(this) 259 , WebServiceWorkerProxy(this)
260 , m_outerWorker(worker) 260 , m_outerWorker(worker)
261 , m_proxyState(Initial) 261 , m_proxyState(Initial)
262 { 262 {
263 ASSERT(m_outerWorker); 263 ASSERT(m_outerWorker);
264 m_outerWorker->setProxy(this); 264 m_outerWorker->setProxy(this);
265 } 265 }
266 266
267 } // namespace blink 267 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorker.h ('k') | Source/modules/serviceworkers/ServiceWorkerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698