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 <memory> | 10 #include <memory> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void OnGetRegistration(int thread_id, | 109 void OnGetRegistration(int thread_id, |
110 int request_id, | 110 int request_id, |
111 int provider_id, | 111 int provider_id, |
112 const GURL& document_url); | 112 const GURL& document_url); |
113 void OnGetRegistrations(int thread_id, int request_id, int provider_id); | 113 void OnGetRegistrations(int thread_id, int request_id, int provider_id); |
114 void OnGetRegistrationForReady(int thread_id, | 114 void OnGetRegistrationForReady(int thread_id, |
115 int request_id, | 115 int request_id, |
116 int provider_id); | 116 int provider_id); |
117 void OnProviderCreated(int provider_id, | 117 void OnProviderCreated(int provider_id, |
118 int route_id, | 118 int route_id, |
119 ServiceWorkerProviderType provider_type); | 119 ServiceWorkerProviderType provider_type, |
| 120 bool is_parent_frame_secure); |
120 void OnProviderDestroyed(int provider_id); | 121 void OnProviderDestroyed(int provider_id); |
121 void OnSetHostedVersionId(int provider_id, int64_t version_id); | 122 void OnSetHostedVersionId(int provider_id, int64_t version_id); |
122 void OnWorkerReadyForInspection(int embedded_worker_id); | 123 void OnWorkerReadyForInspection(int embedded_worker_id); |
123 void OnWorkerScriptLoaded(int embedded_worker_id); | 124 void OnWorkerScriptLoaded(int embedded_worker_id); |
124 void OnWorkerThreadStarted(int embedded_worker_id, | 125 void OnWorkerThreadStarted(int embedded_worker_id, |
125 int thread_id, | 126 int thread_id, |
126 int provider_id); | 127 int provider_id); |
127 void OnWorkerScriptLoadFailed(int embedded_worker_id); | 128 void OnWorkerScriptLoadFailed(int embedded_worker_id); |
128 void OnWorkerScriptEvaluated(int embedded_worker_id, bool success); | 129 void OnWorkerScriptEvaluated(int embedded_worker_id, bool success); |
129 void OnWorkerStarted(int embedded_worker_id); | 130 void OnWorkerStarted(int embedded_worker_id); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 240 |
240 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. | 241 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. |
241 std::vector<std::unique_ptr<IPC::Message>> pending_messages_; | 242 std::vector<std::unique_ptr<IPC::Message>> pending_messages_; |
242 | 243 |
243 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); | 244 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); |
244 }; | 245 }; |
245 | 246 |
246 } // namespace content | 247 } // namespace content |
247 | 248 |
248 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ | 249 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ |
OLD | NEW |