Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WebServiceWorkerPushEventCallback_h | |
| 6 #define WebServiceWorkerPushEventCallback_h | |
| 7 | |
| 8 namespace blink { | |
| 9 | |
| 10 class WebServiceWorkerPushEventCallback { | |
| 11 public: | |
| 12 // Method to be invoked after PushEvent is handled by the ServiceWorker's | |
| 13 // script context. | |
| 14 virtual void didHandlePushEvent(int eventID) const = 0; | |
| 15 | |
| 16 protected: | |
| 17 // This object is to be destroyed after the callback is invoked; | |
| 18 // it should not be directly destroyed. | |
| 19 virtual ~WebServiceWorkerPushEventCallback() { } | |
|
Peter Beverloo
2014/05/22 16:09:49
We don't need this destructor. You could emphasize
Michael van Ouwerkerk
2014/05/23 18:32:03
Done.
| |
| 20 }; | |
| 21 | |
| 22 } // namespace blink | |
| 23 | |
| 24 #endif // WebServiceWorkerPushEventCallback_h | |
| OLD | NEW |