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_VERSION_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 int client_id, | 366 int client_id, |
367 const ServiceWorkerClientInfo& client_info); | 367 const ServiceWorkerClientInfo& client_info); |
368 | 368 |
369 void OnPostMessageToDocument(int client_id, | 369 void OnPostMessageToDocument(int client_id, |
370 const base::string16& message, | 370 const base::string16& message, |
371 const std::vector<int>& sent_message_port_ids); | 371 const std::vector<int>& sent_message_port_ids); |
372 void OnFocusClient(int request_id, int client_id); | 372 void OnFocusClient(int request_id, int client_id); |
373 void OnSkipWaiting(int request_id); | 373 void OnSkipWaiting(int request_id); |
374 void OnClaimClients(int request_id); | 374 void OnClaimClients(int request_id); |
375 | 375 |
376 void OnFocusClientFinished(int request_id, bool result); | 376 void OnFocusClientFinished(int request_id, |
| 377 int client_id, |
| 378 const ServiceWorkerClientInfo& client); |
377 | 379 |
378 void DidSkipWaiting(int request_id); | 380 void DidSkipWaiting(int request_id); |
379 void DidClaimClients(int request_id, ServiceWorkerStatusCode status); | 381 void DidClaimClients(int request_id, ServiceWorkerStatusCode status); |
380 void DidGetClientInfo(int client_id, | 382 void DidGetClientInfo(int client_id, |
381 scoped_refptr<GetClientDocumentsCallback> callback, | 383 scoped_refptr<GetClientDocumentsCallback> callback, |
382 const ServiceWorkerClientInfo& info); | 384 const ServiceWorkerClientInfo& info); |
383 | 385 |
384 void ScheduleStopWorker(); | 386 void ScheduleStopWorker(); |
385 void StopWorkerIfIdle(); | 387 void StopWorkerIfIdle(); |
386 bool HasInflightRequests() const; | 388 bool HasInflightRequests() const; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; | 431 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; |
430 | 432 |
431 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 433 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
432 | 434 |
433 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 435 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
434 }; | 436 }; |
435 | 437 |
436 } // namespace content | 438 } // namespace content |
437 | 439 |
438 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 440 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |