Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: content/browser/service_worker/service_worker_version.h

Issue 996123002: ServiceWorker: Ensure live registration during starting worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 const std::vector<TransferredMessagePort>& sent_message_ports); 385 const std::vector<TransferredMessagePort>& sent_message_ports);
386 void OnFocusClient(int request_id, int client_id); 386 void OnFocusClient(int request_id, int client_id);
387 void OnSkipWaiting(int request_id); 387 void OnSkipWaiting(int request_id);
388 void OnClaimClients(int request_id); 388 void OnClaimClients(int request_id);
389 void OnPongFromWorker(); 389 void OnPongFromWorker();
390 390
391 void OnFocusClientFinished(int request_id, 391 void OnFocusClientFinished(int request_id,
392 int client_id, 392 int client_id,
393 const ServiceWorkerClientInfo& client); 393 const ServiceWorkerClientInfo& client);
394 394
395 void DidEnsureLiveRegistrationForStartWorker(
396 bool pause_after_download,
397 const StatusCallback& callback,
398 ServiceWorkerStatusCode status,
399 const scoped_refptr<ServiceWorkerRegistration>& protect);
395 void DidSkipWaiting(int request_id); 400 void DidSkipWaiting(int request_id);
396 void DidClaimClients(int request_id, ServiceWorkerStatusCode status); 401 void DidClaimClients(int request_id, ServiceWorkerStatusCode status);
397 void DidGetClients( 402 void DidGetClients(
398 int request_id, const std::vector<ServiceWorkerClientInfo>& clients); 403 int request_id, const std::vector<ServiceWorkerClientInfo>& clients);
399 404
400 // The timeout timer periodically calls OnTimeoutTimer, which stops the worker 405 // The timeout timer periodically calls OnTimeoutTimer, which stops the worker
401 // if it is excessively idle or unresponsive to ping. 406 // if it is excessively idle or unresponsive to ping.
402 void StartTimeoutTimer(); 407 void StartTimeoutTimer();
403 void StopTimeoutTimer(); 408 void StopTimeoutTimer();
404 void OnTimeoutTimer(); 409 void OnTimeoutTimer();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; 479 scoped_ptr<net::HttpResponseInfo> main_script_http_info_;
475 480
476 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 481 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
477 482
478 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 483 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
479 }; 484 };
480 485
481 } // namespace content 486 } // namespace content
482 487
483 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 488 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698