Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / browser / service_worker / service_worker_context_core.h
index c59ef7c..7fe3275 100644 (file)
@@ -70,19 +70,23 @@ class CONTENT_EXPORT ServiceWorkerContextCore
   // The callback will be called on the IO thread.
   void RegisterServiceWorker(const GURL& pattern,
                              const GURL& script_url,
+                             int source_process_id,
                              const RegistrationCallback& callback);
 
   // The callback will be called on the IO thread.
   void UnregisterServiceWorker(const GURL& pattern,
+                               int source_process_id,
                                const UnregistrationCallback& callback);
 
   EmbeddedWorkerRegistry* embedded_worker_registry() {
     return embedded_worker_registry_.get();
   }
 
- private:
-  friend class ServiceWorkerBrowserTest;
+  ServiceWorkerJobCoordinator* job_coordinator() {
+    return job_coordinator_.get();
+  }
 
+ private:
   typedef IDMap<ServiceWorkerProviderHost, IDMapOwnPointer> ProviderMap;
   typedef IDMap<ProviderMap, IDMapOwnPointer> ProcessToProviderMap;
 
@@ -95,13 +99,10 @@ class CONTENT_EXPORT ServiceWorkerContextCore
       ServiceWorkerStatusCode status,
       const scoped_refptr<ServiceWorkerRegistration>& registration);
 
-  // Used only for testing.
-  void GetAllProviderHosts(std::vector<ServiceWorkerProviderHost*>* providers);
-
   ProcessToProviderMap providers_;
   scoped_ptr<ServiceWorkerStorage> storage_;
-  scoped_ptr<ServiceWorkerJobCoordinator> job_coordinator_;
   scoped_refptr<EmbeddedWorkerRegistry> embedded_worker_registry_;
+  scoped_ptr<ServiceWorkerJobCoordinator> job_coordinator_;
 
   DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore);
 };