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

Side by Side Diff: content/renderer/service_worker/service_worker_context_client.h

Issue 2847983002: Use unique_ptr for Create{ServiceWorkerNetworkProvider,ApplicationCacheHost} (Closed)
Patch Set: addressed comments Created 3 years, 7 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_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 double dispatch_event_time) override; 189 double dispatch_event_time) override;
190 void RespondToPaymentRequestEvent( 190 void RespondToPaymentRequestEvent(
191 int payment_request_id, 191 int payment_request_id,
192 const blink::WebPaymentAppResponse& response, 192 const blink::WebPaymentAppResponse& response,
193 double dispatch_event_time) override; 193 double dispatch_event_time) override;
194 void DidHandlePaymentRequestEvent(int payment_request_id, 194 void DidHandlePaymentRequestEvent(int payment_request_id,
195 blink::WebServiceWorkerEventResult result, 195 blink::WebServiceWorkerEventResult result,
196 double dispatch_event_time) override; 196 double dispatch_event_time) override;
197 197
198 // Called on the main thread. 198 // Called on the main thread.
199 blink::WebServiceWorkerNetworkProvider* CreateServiceWorkerNetworkProvider() 199 std::unique_ptr<blink::WebServiceWorkerNetworkProvider>
200 override; 200 CreateServiceWorkerNetworkProvider() override;
201 std::unique_ptr<blink::WebWorkerFetchContext> 201 std::unique_ptr<blink::WebWorkerFetchContext>
202 CreateServiceWorkerFetchContext() override; 202 CreateServiceWorkerFetchContext() override;
203 blink::WebServiceWorkerProvider* CreateServiceWorkerProvider() override; 203 std::unique_ptr<blink::WebServiceWorkerProvider> CreateServiceWorkerProvider()
204 override;
204 205
205 void PostMessageToClient(const blink::WebString& uuid, 206 void PostMessageToClient(const blink::WebString& uuid,
206 const blink::WebString& message, 207 const blink::WebString& message,
207 blink::WebMessagePortChannelArray channels) override; 208 blink::WebMessagePortChannelArray channels) override;
208 void Focus(const blink::WebString& uuid, 209 void Focus(const blink::WebString& uuid,
209 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; 210 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override;
210 void Navigate( 211 void Navigate(
211 const blink::WebString& uuid, 212 const blink::WebString& uuid,
212 const blink::WebURL&, 213 const blink::WebURL&,
213 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; 214 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // Initialized on the worker thread in workerContextStarted and 360 // Initialized on the worker thread in workerContextStarted and
360 // destructed on the worker thread in willDestroyWorkerContext. 361 // destructed on the worker thread in willDestroyWorkerContext.
361 std::unique_ptr<WorkerContextData> context_; 362 std::unique_ptr<WorkerContextData> context_;
362 363
363 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 364 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
364 }; 365 };
365 366
366 } // namespace content 367 } // namespace content
367 368
368 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 369 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698