| 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 "base/id_map.h" | 8 #include "base/id_map.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 const GURL& script_url); | 63 const GURL& script_url); |
| 64 void OnUnregisterServiceWorker(int thread_id, | 64 void OnUnregisterServiceWorker(int thread_id, |
| 65 int request_id, | 65 int request_id, |
| 66 int provider_id, | 66 int provider_id, |
| 67 const GURL& pattern); | 67 const GURL& pattern); |
| 68 void OnProviderCreated(int provider_id); | 68 void OnProviderCreated(int provider_id); |
| 69 void OnProviderDestroyed(int provider_id); | 69 void OnProviderDestroyed(int provider_id); |
| 70 void OnAddScriptClient(int thread_id, int provider_id); | 70 void OnAddScriptClient(int thread_id, int provider_id); |
| 71 void OnRemoveScriptClient(int thread_id, int provider_id); | 71 void OnRemoveScriptClient(int thread_id, int provider_id); |
| 72 void OnSetHostedVersionId(int provider_id, int64 version_id); | 72 void OnSetHostedVersionId(int provider_id, int64 version_id); |
| 73 void OnWorkerScriptLoaded(int embedded_worker_id); |
| 73 void OnWorkerStarted(int thread_id, | 74 void OnWorkerStarted(int thread_id, |
| 74 int embedded_worker_id); | 75 int embedded_worker_id); |
| 75 void OnWorkerStopped(int embedded_worker_id); | 76 void OnWorkerStopped(int embedded_worker_id); |
| 76 void OnReportException(int embedded_worker_id, | 77 void OnReportException(int embedded_worker_id, |
| 77 const base::string16& error_message, | 78 const base::string16& error_message, |
| 78 int line_number, | 79 int line_number, |
| 79 int column_number, | 80 int column_number, |
| 80 const GURL& source_url); | 81 const GURL& source_url); |
| 81 void OnReportConsoleMessage( | 82 void OnReportConsoleMessage( |
| 82 int embedded_worker_id, | 83 int embedded_worker_id, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 109 | 110 |
| 110 bool channel_ready_; // True after BrowserMessageFilter::channel_ != NULL. | 111 bool channel_ready_; // True after BrowserMessageFilter::channel_ != NULL. |
| 111 ScopedVector<IPC::Message> pending_messages_; | 112 ScopedVector<IPC::Message> pending_messages_; |
| 112 | 113 |
| 113 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 114 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 } // namespace content | 117 } // namespace content |
| 117 | 118 |
| 118 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 119 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| OLD | NEW |