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

Unified Diff: content/child/service_worker/service_worker_provider_context.h

Issue 1851933002: Convert //url to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU fixup 7 Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/request_info.h ('k') | content/child/service_worker/service_worker_provider_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/service_worker/service_worker_provider_context.h
diff --git a/content/child/service_worker/service_worker_provider_context.h b/content/child/service_worker/service_worker_provider_context.h
index 06561a4bd045dccfa0dff1c9f360bd901ed5bdfe..85e259a852bd8ff0b1252b73fff188b371d721a0 100644
--- a/content/child/service_worker/service_worker_provider_context.h
+++ b/content/child/service_worker/service_worker_provider_context.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_CONTEXT_H_
#define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_CONTEXT_H_
+#include <memory>
#include <set>
#include <vector>
@@ -51,13 +52,13 @@ class CONTENT_EXPORT ServiceWorkerProviderContext
// Called from ServiceWorkerDispatcher.
void OnAssociateRegistration(
- scoped_ptr<ServiceWorkerRegistrationHandleReference> registration,
- scoped_ptr<ServiceWorkerHandleReference> installing,
- scoped_ptr<ServiceWorkerHandleReference> waiting,
- scoped_ptr<ServiceWorkerHandleReference> active);
+ std::unique_ptr<ServiceWorkerRegistrationHandleReference> registration,
+ std::unique_ptr<ServiceWorkerHandleReference> installing,
+ std::unique_ptr<ServiceWorkerHandleReference> waiting,
+ std::unique_ptr<ServiceWorkerHandleReference> active);
void OnDisassociateRegistration();
void OnSetControllerServiceWorker(
- scoped_ptr<ServiceWorkerHandleReference> controller);
+ std::unique_ptr<ServiceWorkerHandleReference> controller);
// Called on the worker thread. Used for initializing
// ServiceWorkerGlobalScope.
@@ -85,7 +86,7 @@ class CONTENT_EXPORT ServiceWorkerProviderContext
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
scoped_refptr<ThreadSafeSender> thread_safe_sender_;
- scoped_ptr<Delegate> delegate_;
+ std::unique_ptr<Delegate> delegate_;
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderContext);
};
« no previous file with comments | « content/child/request_info.h ('k') | content/child/service_worker/service_worker_provider_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698