| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 const GURL& source_url); | 129 const GURL& source_url); |
| 130 void OnReportConsoleMessage( | 130 void OnReportConsoleMessage( |
| 131 int embedded_worker_id, | 131 int embedded_worker_id, |
| 132 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params); | 132 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params); |
| 133 void OnIncrementServiceWorkerRefCount(int handle_id); | 133 void OnIncrementServiceWorkerRefCount(int handle_id); |
| 134 void OnDecrementServiceWorkerRefCount(int handle_id); | 134 void OnDecrementServiceWorkerRefCount(int handle_id); |
| 135 void OnIncrementRegistrationRefCount(int registration_handle_id); | 135 void OnIncrementRegistrationRefCount(int registration_handle_id); |
| 136 void OnDecrementRegistrationRefCount(int registration_handle_id); | 136 void OnDecrementRegistrationRefCount(int registration_handle_id); |
| 137 void OnPostMessageToWorker( | 137 void OnPostMessageToWorker( |
| 138 int handle_id, | 138 int handle_id, |
| 139 int provider_id, |
| 139 const base::string16& message, | 140 const base::string16& message, |
| 140 const std::vector<TransferredMessagePort>& sent_message_ports); | 141 const std::vector<TransferredMessagePort>& sent_message_ports); |
| 141 | 142 |
| 142 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by | 143 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by |
| 143 // default (crbug.com/543198). | 144 // default (crbug.com/543198). |
| 144 void OnDeprecatedPostMessageToWorker( | 145 void OnDeprecatedPostMessageToWorker( |
| 145 int handle_id, | 146 int handle_id, |
| 146 const base::string16& message, | 147 const base::string16& message, |
| 147 const std::vector<TransferredMessagePort>& sent_message_ports); | 148 const std::vector<TransferredMessagePort>& sent_message_ports); |
| 148 | 149 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 236 |
| 236 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. | 237 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. |
| 237 std::vector<scoped_ptr<IPC::Message>> pending_messages_; | 238 std::vector<scoped_ptr<IPC::Message>> pending_messages_; |
| 238 | 239 |
| 239 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 240 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
| 240 }; | 241 }; |
| 241 | 242 |
| 242 } // namespace content | 243 } // namespace content |
| 243 | 244 |
| 244 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 245 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
| OLD | NEW |