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

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

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
11 #include <map> 11 #include <map>
12 #include <memory>
12 #include <string> 13 #include <string>
13 #include <vector> 14 #include <vector>
14 15
15 #include "base/id_map.h" 16 #include "base/id_map.h"
16 #include "base/macros.h" 17 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
18 #include "base/memory/scoped_ptr.h"
19 #include "base/strings/string16.h" 19 #include "base/strings/string16.h"
20 #include "base/time/time.h" 20 #include "base/time/time.h"
21 #include "content/child/webmessageportchannel_impl.h" 21 #include "content/child/webmessageportchannel_impl.h"
22 #include "content/common/service_worker/service_worker_types.h" 22 #include "content/common/service_worker/service_worker_types.h"
23 #include "content/public/common/service_worker_event_status.mojom.h" 23 #include "content/public/common/service_worker_event_status.mojom.h"
24 #include "ipc/ipc_listener.h" 24 #include "ipc/ipc_listener.h"
25 #include "mojo/shell/public/interfaces/interface_provider.mojom.h" 25 #include "mojo/shell/public/interfaces/interface_provider.mojom.h"
26 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h" 26 #include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
27 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" 27 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h"
28 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h" 28 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerError.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 250 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
251 scoped_refptr<base::TaskRunner> worker_task_runner_; 251 scoped_refptr<base::TaskRunner> worker_task_runner_;
252 252
253 scoped_refptr<ServiceWorkerProviderContext> provider_context_; 253 scoped_refptr<ServiceWorkerProviderContext> provider_context_;
254 254
255 // Not owned; this object is destroyed when proxy_ becomes invalid. 255 // Not owned; this object is destroyed when proxy_ becomes invalid.
256 blink::WebServiceWorkerContextProxy* proxy_; 256 blink::WebServiceWorkerContextProxy* proxy_;
257 257
258 // Initialized on the worker thread in workerContextStarted and 258 // Initialized on the worker thread in workerContextStarted and
259 // destructed on the worker thread in willDestroyWorkerContext. 259 // destructed on the worker thread in willDestroyWorkerContext.
260 scoped_ptr<WorkerContextData> context_; 260 std::unique_ptr<WorkerContextData> context_;
261 261
262 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 262 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
263 }; 263 };
264 264
265 } // namespace content 265 } // namespace content
266 266
267 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 267 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698