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

Side by Side Diff: Source/modules/serviceworkers/ServiceWorker.h

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW(); 61 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW();
62 #endif 62 #endif
63 63
64 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> messag e, const MessagePortArray*, ExceptionState&); 64 void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> messag e, const MessagePortArray*, ExceptionState&);
65 65
66 String scriptURL() const; 66 String scriptURL() const;
67 String state() const; 67 String state() const;
68 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange);
69 69
70 // WebServiceWorkerProxy overrides. 70 // WebServiceWorkerProxy overrides.
71 virtual void dispatchStateChangeEvent() override; 71 void dispatchStateChangeEvent() override;
72 72
73 // AbstractWorker overrides. 73 // AbstractWorker overrides.
74 virtual const AtomicString& interfaceName() const override; 74 const AtomicString& interfaceName() const override;
75 75
76 void internalsTerminate(); 76 void internalsTerminate();
77 private: 77 private:
78 static PassRefPtrWillBeRawPtr<ServiceWorker> getOrCreate(ExecutionContext*, WebType*); 78 static PassRefPtrWillBeRawPtr<ServiceWorker> getOrCreate(ExecutionContext*, WebType*);
79 ServiceWorker(ExecutionContext*, PassOwnPtr<WebServiceWorker>); 79 ServiceWorker(ExecutionContext*, PassOwnPtr<WebServiceWorker>);
80 80
81 // ActiveDOMObject overrides. 81 // ActiveDOMObject overrides.
82 virtual bool hasPendingActivity() const override; 82 bool hasPendingActivity() const override;
83 virtual void stop() override; 83 void stop() override;
84 84
85 OwnPtr<WebServiceWorker> m_outerWorker; 85 OwnPtr<WebServiceWorker> m_outerWorker;
86 bool m_wasStopped; 86 bool m_wasStopped;
87 }; 87 };
88 88
89 } // namespace blink 89 } // namespace blink
90 90
91 #endif // ServiceWorker_h 91 #endif // ServiceWorker_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/RespondWithObserver.cpp ('k') | Source/modules/serviceworkers/ServiceWorkerContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698