X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcontent%2Fchild%2Fservice_worker%2Fservice_worker_registration_handle_reference.h;h=605094d36066b5a9e81a8796b9ef98376f945b70;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=fdfb1095cc881a986d18b421649d8c5fd581b483;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/content/child/service_worker/service_worker_registration_handle_reference.h b/src/content/child/service_worker/service_worker_registration_handle_reference.h index fdfb109..605094d 100644 --- a/src/content/child/service_worker/service_worker_registration_handle_reference.h +++ b/src/content/child/service_worker/service_worker_registration_handle_reference.h @@ -7,42 +7,40 @@ #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" +#include "content/common/service_worker/service_worker_types.h" #include "url/gurl.h" namespace content { class ThreadSafeSender; -struct ServiceWorkerObjectInfo; class ServiceWorkerRegistrationHandleReference { public: // Creates a new ServiceWorkerRegistrationHandleReference and increments // ref-count. static scoped_ptr Create( - int registration_handle_id, - const ServiceWorkerObjectInfo& info, + const ServiceWorkerRegistrationObjectInfo& info, ThreadSafeSender* sender); // Creates a new ServiceWorkerRegistrationHandleReference by adopting a // ref-count. static scoped_ptr Adopt( - int registration_handle_id, - const ServiceWorkerObjectInfo& info, + const ServiceWorkerRegistrationObjectInfo& info, ThreadSafeSender* sender); ~ServiceWorkerRegistrationHandleReference(); - int handle_id() const { return handle_id_; } - GURL scope() const { return scope_; } + const ServiceWorkerRegistrationObjectInfo& info() const { return info_; } + int handle_id() const { return info_.handle_id; } + GURL scope() const { return info_.scope; } private: - ServiceWorkerRegistrationHandleReference(int registration_handle_id, - const ServiceWorkerObjectInfo& info, - ThreadSafeSender* sender, - bool increment_ref_in_ctor); + ServiceWorkerRegistrationHandleReference( + const ServiceWorkerRegistrationObjectInfo& info, + ThreadSafeSender* sender, + bool increment_ref_in_ctor); - const int handle_id_; - const GURL scope_; + ServiceWorkerRegistrationObjectInfo info_; scoped_refptr sender_; DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegistrationHandleReference);