Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebServiceWorkerRegistration_h | 5 #ifndef WebServiceWorkerRegistration_h |
| 6 #define WebServiceWorkerRegistration_h | 6 #define WebServiceWorkerRegistration_h |
| 7 | 7 |
| 8 #include "public/platform/WebCallbacks.h" | 8 #include "public/platform/WebCallbacks.h" |
| 9 #include "public/platform/WebURL.h" | 9 #include "public/platform/WebURL.h" |
| 10 #include "public/platform/modules/serviceworker/WebServiceWorkerError.h" | 10 #include "public/platform/modules/serviceworker/WebServiceWorkerError.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 bool enable, | 59 bool enable, |
| 60 WebServiceWorkerProvider*, | 60 WebServiceWorkerProvider*, |
| 61 std::unique_ptr<WebEnableNavigationPreloadCallbacks>) {} | 61 std::unique_ptr<WebEnableNavigationPreloadCallbacks>) {} |
| 62 virtual void getNavigationPreloadState( | 62 virtual void getNavigationPreloadState( |
| 63 WebServiceWorkerProvider*, | 63 WebServiceWorkerProvider*, |
| 64 std::unique_ptr<WebGetNavigationPreloadStateCallbacks>) {} | 64 std::unique_ptr<WebGetNavigationPreloadStateCallbacks>) {} |
| 65 virtual void setNavigationPreloadHeader( | 65 virtual void setNavigationPreloadHeader( |
| 66 const WebString& value, | 66 const WebString& value, |
| 67 WebServiceWorkerProvider*, | 67 WebServiceWorkerProvider*, |
| 68 std::unique_ptr<WebSetNavigationPreloadHeaderCallbacks>) {} | 68 std::unique_ptr<WebSetNavigationPreloadHeaderCallbacks>) {} |
| 69 | |
| 70 virtual int64_t registrationId() const = 0; | |
|
Peter Beverloo
2016/11/08 16:45:11
nit: everything else in this class has empty imple
Peter Beverloo
2016/11/08 16:45:11
micro nit: maybe put this next to scope(), since t
adithyas
2016/11/08 18:26:19
I don't really have a good default value; I would
adithyas
2016/11/08 18:26:19
Done.
| |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 } // namespace blink | 73 } // namespace blink |
| 72 | 74 |
| 73 #endif // WebServiceWorkerRegistration_h | 75 #endif // WebServiceWorkerRegistration_h |
| OLD | NEW |