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

Side by Side Diff: content/child/service_worker/web_service_worker_registration_impl.h

Issue 2413063003: service worker: Add promise boilerplate for NavigationPreload enable/disable (Closed)
Patch Set: more boilerplate Created 4 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 // 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 CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void OnUpdateFound(); 48 void OnUpdateFound();
49 49
50 // blink::WebServiceWorkerRegistration overrides. 50 // blink::WebServiceWorkerRegistration overrides.
51 void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override; 51 void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override;
52 blink::WebServiceWorkerRegistrationProxy* proxy() override; 52 blink::WebServiceWorkerRegistrationProxy* proxy() override;
53 blink::WebURL scope() const override; 53 blink::WebURL scope() const override;
54 void update(blink::WebServiceWorkerProvider* provider, 54 void update(blink::WebServiceWorkerProvider* provider,
55 WebServiceWorkerUpdateCallbacks* callbacks) override; 55 WebServiceWorkerUpdateCallbacks* callbacks) override;
56 void unregister(blink::WebServiceWorkerProvider* provider, 56 void unregister(blink::WebServiceWorkerProvider* provider,
57 WebServiceWorkerUnregistrationCallbacks* callbacks) override; 57 WebServiceWorkerUnregistrationCallbacks* callbacks) override;
58 void enableNavigationPreload(
59 WebEnableNavigationPreloadCallbacks* callbacks) override;
60 void disableNavigationPreload(
61 WebDisableNavigationPreloadCallbacks* callbacks) override;
58 62
59 int64_t registration_id() const; 63 int64_t registration_id() const;
60 64
61 using WebServiceWorkerRegistrationHandle = 65 using WebServiceWorkerRegistrationHandle =
62 blink::WebServiceWorkerRegistration::Handle; 66 blink::WebServiceWorkerRegistration::Handle;
63 67
64 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to 68 // Creates WebServiceWorkerRegistrationHandle object that owns a reference to
65 // the given WebServiceWorkerRegistrationImpl object. 69 // the given WebServiceWorkerRegistrationImpl object.
66 static std::unique_ptr<WebServiceWorkerRegistrationHandle> CreateHandle( 70 static std::unique_ptr<WebServiceWorkerRegistrationHandle> CreateHandle(
67 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration); 71 const scoped_refptr<WebServiceWorkerRegistrationImpl>& registration);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 blink::WebServiceWorkerRegistrationProxy* proxy_; 103 blink::WebServiceWorkerRegistrationProxy* proxy_;
100 104
101 std::vector<QueuedTask> queued_tasks_; 105 std::vector<QueuedTask> queued_tasks_;
102 106
103 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); 107 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl);
104 }; 108 };
105 109
106 } // namespace content 110 } // namespace content
107 111
108 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ 112 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698