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

Side by Side Diff: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h

Issue 2473483012: Move content/child/background_sync to Blink. (Closed)
Patch Set: Fix nits Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/public/platform/modules/background_sync/WebSyncRegistration.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public: 43 public:
44 virtual ~Handle() {} 44 virtual ~Handle() {}
45 virtual WebServiceWorkerRegistration* registration() { return nullptr; } 45 virtual WebServiceWorkerRegistration* registration() { return nullptr; }
46 }; 46 };
47 47
48 virtual void setProxy(WebServiceWorkerRegistrationProxy*) {} 48 virtual void setProxy(WebServiceWorkerRegistrationProxy*) {}
49 virtual WebServiceWorkerRegistrationProxy* proxy() { return nullptr; } 49 virtual WebServiceWorkerRegistrationProxy* proxy() { return nullptr; }
50 virtual void proxyStopped() {} 50 virtual void proxyStopped() {}
51 51
52 virtual WebURL scope() const { return WebURL(); } 52 virtual WebURL scope() const { return WebURL(); }
53 virtual int64_t registrationId() const = 0;
53 virtual void update(WebServiceWorkerProvider*, 54 virtual void update(WebServiceWorkerProvider*,
54 WebServiceWorkerUpdateCallbacks*) {} 55 WebServiceWorkerUpdateCallbacks*) {}
55 virtual void unregister(WebServiceWorkerProvider*, 56 virtual void unregister(WebServiceWorkerProvider*,
56 WebServiceWorkerUnregistrationCallbacks*) {} 57 WebServiceWorkerUnregistrationCallbacks*) {}
57 58
58 virtual void enableNavigationPreload( 59 virtual void enableNavigationPreload(
59 bool enable, 60 bool enable,
60 WebServiceWorkerProvider*, 61 WebServiceWorkerProvider*,
61 std::unique_ptr<WebEnableNavigationPreloadCallbacks>) {} 62 std::unique_ptr<WebEnableNavigationPreloadCallbacks>) {}
62 virtual void getNavigationPreloadState( 63 virtual void getNavigationPreloadState(
63 WebServiceWorkerProvider*, 64 WebServiceWorkerProvider*,
64 std::unique_ptr<WebGetNavigationPreloadStateCallbacks>) {} 65 std::unique_ptr<WebGetNavigationPreloadStateCallbacks>) {}
65 virtual void setNavigationPreloadHeader( 66 virtual void setNavigationPreloadHeader(
66 const WebString& value, 67 const WebString& value,
67 WebServiceWorkerProvider*, 68 WebServiceWorkerProvider*,
68 std::unique_ptr<WebSetNavigationPreloadHeaderCallbacks>) {} 69 std::unique_ptr<WebSetNavigationPreloadHeaderCallbacks>) {}
69 }; 70 };
70 71
71 } // namespace blink 72 } // namespace blink
72 73
73 #endif // WebServiceWorkerRegistration_h 74 #endif // WebServiceWorkerRegistration_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/modules/background_sync/WebSyncRegistration.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698