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_PROVIDER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // { render_process_id_, route_id_ }. | 179 // { render_process_id_, route_id_ }. |
180 // Runs the |callback| with the updated ServiceWorkerClientInfo in parameter. | 180 // Runs the |callback| with the updated ServiceWorkerClientInfo in parameter. |
181 void Focus(const GetClientInfoCallback& callback); | 181 void Focus(const GetClientInfoCallback& callback); |
182 | 182 |
183 // Asks the renderer to send back the document information. | 183 // Asks the renderer to send back the document information. |
184 void GetWindowClientInfo(const GetClientInfoCallback& callback) const; | 184 void GetWindowClientInfo(const GetClientInfoCallback& callback) const; |
185 | 185 |
186 // Same as above but has to be called from the UI thread. | 186 // Same as above but has to be called from the UI thread. |
187 // It is taking the process and frame ids in parameter because |this| is meant | 187 // It is taking the process and frame ids in parameter because |this| is meant |
188 // to live on the IO thread. | 188 // to live on the IO thread. |
189 static ServiceWorkerClientInfo GetWindowClientInfoOnUI(int render_process_id, | 189 static ServiceWorkerClientInfo GetWindowClientInfoOnUI( |
190 int render_frame_id); | 190 int render_process_id, |
| 191 int render_frame_id, |
| 192 const std::string& client_uuid); |
191 | 193 |
192 // Adds reference of this host's process to the |pattern|, the reference will | 194 // Adds reference of this host's process to the |pattern|, the reference will |
193 // be removed in destructor. | 195 // be removed in destructor. |
194 void AddScopedProcessReferenceToPattern(const GURL& pattern); | 196 void AddScopedProcessReferenceToPattern(const GURL& pattern); |
195 | 197 |
196 // |registration| claims the document to be controlled. | 198 // |registration| claims the document to be controlled. |
197 void ClaimedByRegistration(ServiceWorkerRegistration* registration); | 199 void ClaimedByRegistration(ServiceWorkerRegistration* registration); |
198 | 200 |
199 // Called by dispatcher host to get the registration for the "ready" property. | 201 // Called by dispatcher host to get the registration for the "ready" property. |
200 // Returns false if there's a completed or ongoing request for the document. | 202 // Returns false if there's a completed or ongoing request for the document. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 bool allow_association_; | 341 bool allow_association_; |
340 | 342 |
341 std::vector<base::Closure> queued_events_; | 343 std::vector<base::Closure> queued_events_; |
342 | 344 |
343 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 345 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
344 }; | 346 }; |
345 | 347 |
346 } // namespace content | 348 } // namespace content |
347 | 349 |
348 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 350 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
OLD | NEW |