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

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

Issue 1011643002: ServiceWorker: Introduce SWMessageSender in order to mock IPC messaging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header comment Created 5 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
Index: content/child/service_worker/service_worker_registration_handle_reference.h
diff --git a/content/child/service_worker/service_worker_registration_handle_reference.h b/content/child/service_worker/service_worker_registration_handle_reference.h
index c7138e622c9f30598bb1e6fec96f17846e06fa4e..15c98d460438b1d58e0e34213dd1ffc95f1ec52e 100644
--- a/content/child/service_worker/service_worker_registration_handle_reference.h
+++ b/content/child/service_worker/service_worker_registration_handle_reference.h
@@ -12,7 +12,7 @@
namespace content {
-class ThreadSafeSender;
+class ServiceWorkerMessageSender;
class ServiceWorkerRegistrationHandleReference {
public:
@@ -20,13 +20,13 @@ class ServiceWorkerRegistrationHandleReference {
// ref-count.
static scoped_ptr<ServiceWorkerRegistrationHandleReference> Create(
const ServiceWorkerRegistrationObjectInfo& info,
- ThreadSafeSender* sender);
+ ServiceWorkerMessageSender* sender);
// Creates a new ServiceWorkerRegistrationHandleReference by adopting a
// ref-count.
static scoped_ptr<ServiceWorkerRegistrationHandleReference> Adopt(
const ServiceWorkerRegistrationObjectInfo& info,
- ThreadSafeSender* sender);
+ ServiceWorkerMessageSender* sender);
~ServiceWorkerRegistrationHandleReference();
@@ -38,11 +38,11 @@ class ServiceWorkerRegistrationHandleReference {
private:
ServiceWorkerRegistrationHandleReference(
const ServiceWorkerRegistrationObjectInfo& info,
- ThreadSafeSender* sender,
+ ServiceWorkerMessageSender* sender,
bool increment_ref_in_ctor);
ServiceWorkerRegistrationObjectInfo info_;
- scoped_refptr<ThreadSafeSender> sender_;
+ scoped_refptr<ServiceWorkerMessageSender> sender_;
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegistrationHandleReference);
};

Powered by Google App Engine
This is Rietveld 408576698