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

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

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers Created 4 years 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void SetInstalling(const scoped_refptr<WebServiceWorkerImpl>& service_worker); 42 void SetInstalling(const scoped_refptr<WebServiceWorkerImpl>& service_worker);
43 void SetWaiting(const scoped_refptr<WebServiceWorkerImpl>& service_worker); 43 void SetWaiting(const scoped_refptr<WebServiceWorkerImpl>& service_worker);
44 void SetActive(const scoped_refptr<WebServiceWorkerImpl>& service_worker); 44 void SetActive(const scoped_refptr<WebServiceWorkerImpl>& service_worker);
45 45
46 void OnUpdateFound(); 46 void OnUpdateFound();
47 47
48 // blink::WebServiceWorkerRegistration overrides. 48 // blink::WebServiceWorkerRegistration overrides.
49 void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override; 49 void setProxy(blink::WebServiceWorkerRegistrationProxy* proxy) override;
50 blink::WebServiceWorkerRegistrationProxy* proxy() override; 50 blink::WebServiceWorkerRegistrationProxy* proxy() override;
51 blink::WebURL scope() const override; 51 blink::WebURL scope() const override;
52 void update(blink::WebServiceWorkerProvider* provider, 52 void update(
53 WebServiceWorkerUpdateCallbacks* callbacks) override; 53 blink::WebServiceWorkerProvider* provider,
54 std::unique_ptr<WebServiceWorkerUpdateCallbacks> callbacks) override;
54 void unregister(blink::WebServiceWorkerProvider* provider, 55 void unregister(blink::WebServiceWorkerProvider* provider,
55 WebServiceWorkerUnregistrationCallbacks* callbacks) override; 56 std::unique_ptr<WebServiceWorkerUnregistrationCallbacks>
57 callbacks) override;
56 void enableNavigationPreload( 58 void enableNavigationPreload(
57 bool enable, 59 bool enable,
58 blink::WebServiceWorkerProvider* provider, 60 blink::WebServiceWorkerProvider* provider,
59 std::unique_ptr<WebEnableNavigationPreloadCallbacks> callbacks) override; 61 std::unique_ptr<WebEnableNavigationPreloadCallbacks> callbacks) override;
60 void getNavigationPreloadState( 62 void getNavigationPreloadState(
61 blink::WebServiceWorkerProvider* provider, 63 blink::WebServiceWorkerProvider* provider,
62 std::unique_ptr<WebGetNavigationPreloadStateCallbacks> callbacks) 64 std::unique_ptr<WebGetNavigationPreloadStateCallbacks> callbacks)
63 override; 65 override;
64 void setNavigationPreloadHeader( 66 void setNavigationPreloadHeader(
65 const blink::WebString& value, 67 const blink::WebString& value,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 blink::WebServiceWorkerRegistrationProxy* proxy_; 111 blink::WebServiceWorkerRegistrationProxy* proxy_;
110 112
111 std::vector<QueuedTask> queued_tasks_; 113 std::vector<QueuedTask> queued_tasks_;
112 114
113 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl); 115 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerRegistrationImpl);
114 }; 116 };
115 117
116 } // namespace content 118 } // namespace content
117 119
118 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_ 120 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_REGISTRATION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698