| OLD | NEW | 
|    1 // Copyright 2013 The Chromium Authors. All rights reserved. |    1 // Copyright 2013 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |    5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 
|    6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |    6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 
|    7  |    7  | 
|    8 #include <vector> |    8 #include <vector> | 
|    9  |    9  | 
|   10 #include "base/id_map.h" |   10 #include "base/id_map.h" | 
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   81   friend class BrowserThread; |   81   friend class BrowserThread; | 
|   82   friend class base::DeleteHelper<ServiceWorkerDispatcherHost>; |   82   friend class base::DeleteHelper<ServiceWorkerDispatcherHost>; | 
|   83   friend class TestingServiceWorkerDispatcherHost; |   83   friend class TestingServiceWorkerDispatcherHost; | 
|   84  |   84  | 
|   85   // IPC Message handlers |   85   // IPC Message handlers | 
|   86   void OnRegisterServiceWorker(int thread_id, |   86   void OnRegisterServiceWorker(int thread_id, | 
|   87                                int request_id, |   87                                int request_id, | 
|   88                                int provider_id, |   88                                int provider_id, | 
|   89                                const GURL& pattern, |   89                                const GURL& pattern, | 
|   90                                const GURL& script_url); |   90                                const GURL& script_url); | 
|   91   void OnUpdateServiceWorker(int provider_id, int64 registration_id); |   91   void OnUpdateServiceWorker(int thread_id, | 
 |   92                              int request_id, | 
 |   93                              int provider_id, | 
 |   94                              int64 registration_id); | 
|   92   void OnUnregisterServiceWorker(int thread_id, |   95   void OnUnregisterServiceWorker(int thread_id, | 
|   93                                  int request_id, |   96                                  int request_id, | 
|   94                                  int provider_id, |   97                                  int provider_id, | 
|   95                                  int64 registration_id); |   98                                  int64 registration_id); | 
|   96   void OnGetRegistration(int thread_id, |   99   void OnGetRegistration(int thread_id, | 
|   97                          int request_id, |  100                          int request_id, | 
|   98                          int provider_id, |  101                          int provider_id, | 
|   99                          const GURL& document_url); |  102                          const GURL& document_url); | 
|  100   void OnGetRegistrations(int thread_id, int request_id, int provider_id); |  103   void OnGetRegistrations(int thread_id, int request_id, int provider_id); | 
|  101   void OnGetRegistrationForReady(int thread_id, |  104   void OnGetRegistrationForReady(int thread_id, | 
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  144       ServiceWorkerVersionAttributes* attrs); |  147       ServiceWorkerVersionAttributes* attrs); | 
|  145  |  148  | 
|  146   // Callbacks from ServiceWorkerContextCore |  149   // Callbacks from ServiceWorkerContextCore | 
|  147   void RegistrationComplete(int thread_id, |  150   void RegistrationComplete(int thread_id, | 
|  148                             int provider_id, |  151                             int provider_id, | 
|  149                             int request_id, |  152                             int request_id, | 
|  150                             ServiceWorkerStatusCode status, |  153                             ServiceWorkerStatusCode status, | 
|  151                             const std::string& status_message, |  154                             const std::string& status_message, | 
|  152                             int64 registration_id); |  155                             int64 registration_id); | 
|  153  |  156  | 
 |  157   void UpdateComplete(int thread_id, | 
 |  158                       int provider_id, | 
 |  159                       int request_id, | 
 |  160                       ServiceWorkerStatusCode status, | 
 |  161                       const std::string& status_message, | 
 |  162                       int64 registration_id); | 
 |  163  | 
|  154   void UnregistrationComplete(int thread_id, |  164   void UnregistrationComplete(int thread_id, | 
|  155                               int request_id, |  165                               int request_id, | 
|  156                               ServiceWorkerStatusCode status); |  166                               ServiceWorkerStatusCode status); | 
|  157  |  167  | 
|  158   void GetRegistrationComplete( |  168   void GetRegistrationComplete( | 
|  159       int thread_id, |  169       int thread_id, | 
|  160       int provider_id, |  170       int provider_id, | 
|  161       int request_id, |  171       int request_id, | 
|  162       ServiceWorkerStatusCode status, |  172       ServiceWorkerStatusCode status, | 
|  163       const scoped_refptr<ServiceWorkerRegistration>& registration); |  173       const scoped_refptr<ServiceWorkerRegistration>& registration); | 
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  204  |  214  | 
|  205   bool channel_ready_;  // True after BrowserMessageFilter::sender_ != NULL. |  215   bool channel_ready_;  // True after BrowserMessageFilter::sender_ != NULL. | 
|  206   ScopedVector<IPC::Message> pending_messages_; |  216   ScopedVector<IPC::Message> pending_messages_; | 
|  207  |  217  | 
|  208   DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |  218   DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 
|  209 }; |  219 }; | 
|  210  |  220  | 
|  211 }  // namespace content |  221 }  // namespace content | 
|  212  |  222  | 
|  213 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |  223 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 
| OLD | NEW |