Chromium Code Reviews| 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_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 typedef std::map<int, blink::WebServiceWorkerProviderClient*> ScriptClientMap; | 67 typedef std::map<int, blink::WebServiceWorkerProviderClient*> ScriptClientMap; |
| 68 | 68 |
| 69 // WorkerTaskRunner::Observer implementation. | 69 // WorkerTaskRunner::Observer implementation. |
| 70 virtual void OnWorkerRunLoopStopped() OVERRIDE; | 70 virtual void OnWorkerRunLoopStopped() OVERRIDE; |
| 71 | 71 |
| 72 // The asynchronous success response to RegisterServiceWorker. | 72 // The asynchronous success response to RegisterServiceWorker. |
| 73 void OnRegistered(int thread_id, | 73 void OnRegistered(int thread_id, |
| 74 int request_id, | 74 int request_id, |
| 75 int64 registration_id, | 75 int handle_id, |
|
michaeln
2014/04/08 01:21:41
do we need version id on the client side anymore?
kinuko
2014/04/08 08:43:31
Done.
| |
| 76 int64 version_id); | 76 int64 version_id); |
| 77 // The asynchronous success response to UregisterServiceWorker. | 77 // The asynchronous success response to UregisterServiceWorker. |
| 78 void OnUnregistered(int thread_id, | 78 void OnUnregistered(int thread_id, |
| 79 int request_id); | 79 int request_id); |
| 80 void OnRegistrationError(int thread_id, | 80 void OnRegistrationError(int thread_id, |
| 81 int request_id, | 81 int request_id, |
| 82 blink::WebServiceWorkerError::ErrorType error_type, | 82 blink::WebServiceWorkerError::ErrorType error_type, |
| 83 const base::string16& message); | 83 const base::string16& message); |
| 84 | 84 |
| 85 IDMap<blink::WebServiceWorkerProvider::WebServiceWorkerCallbacks, | 85 IDMap<blink::WebServiceWorkerProvider::WebServiceWorkerCallbacks, |
| 86 IDMapOwnPointer> pending_callbacks_; | 86 IDMapOwnPointer> pending_callbacks_; |
| 87 ScriptClientMap script_clients_; | 87 ScriptClientMap script_clients_; |
| 88 | 88 |
| 89 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 89 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); | 91 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace content | 94 } // namespace content |
| 95 | 95 |
| 96 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 96 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| OLD | NEW |