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

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

Issue 1202453002: ServiceWorker: Implement navigate() method in WindowClient (chromium side). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); 440 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data);
441 void OnSetCachedMetadataFinished(int64 callback_id, int result); 441 void OnSetCachedMetadataFinished(int64 callback_id, int result);
442 void OnClearCachedMetadata(const GURL& url); 442 void OnClearCachedMetadata(const GURL& url);
443 void OnClearCachedMetadataFinished(int64 callback_id, int result); 443 void OnClearCachedMetadataFinished(int64 callback_id, int result);
444 444
445 void OnPostMessageToClient( 445 void OnPostMessageToClient(
446 const std::string& client_uuid, 446 const std::string& client_uuid,
447 const base::string16& message, 447 const base::string16& message,
448 const std::vector<TransferredMessagePort>& sent_message_ports); 448 const std::vector<TransferredMessagePort>& sent_message_ports);
449 void OnFocusClient(int request_id, const std::string& client_uuid); 449 void OnFocusClient(int request_id, const std::string& client_uuid);
450 void OnNavigateClient(int request_id,
451 const std::string& client_uuid,
452 const GURL& url);
450 void OnSkipWaiting(int request_id); 453 void OnSkipWaiting(int request_id);
451 void OnClaimClients(int request_id); 454 void OnClaimClients(int request_id);
452 void OnPongFromWorker(); 455 void OnPongFromWorker();
453 void OnStashMessagePort(int message_port_id, const base::string16& name); 456 void OnStashMessagePort(int message_port_id, const base::string16& name);
454 457
455 void OnFocusClientFinished(int request_id, 458 void OnFocusClientFinished(int request_id,
456 const std::string& client_uuid, 459 const std::string& client_uuid,
457 const ServiceWorkerClientInfo& client); 460 const ServiceWorkerClientInfo& client);
461 void OnNavigateClientFinished(int request_id,
462 const std::string& client_uuid,
463 const GURL& url,
464 const ServiceWorkerClientInfo& client);
458 465
459 void DidEnsureLiveRegistrationForStartWorker( 466 void DidEnsureLiveRegistrationForStartWorker(
460 bool pause_after_download, 467 bool pause_after_download,
461 const StatusCallback& callback, 468 const StatusCallback& callback,
462 ServiceWorkerStatusCode status, 469 ServiceWorkerStatusCode status,
463 const scoped_refptr<ServiceWorkerRegistration>& protect); 470 const scoped_refptr<ServiceWorkerRegistration>& protect);
464 void StartWorkerInternal(bool pause_after_download); 471 void StartWorkerInternal(bool pause_after_download);
465 472
466 void DidSkipWaiting(int request_id); 473 void DidSkipWaiting(int request_id);
467 474
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 scoped_ptr<Metrics> metrics_; 581 scoped_ptr<Metrics> metrics_;
575 582
576 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 583 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
577 584
578 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 585 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
579 }; 586 };
580 587
581 } // namespace content 588 } // namespace content
582 589
583 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 590 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698