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

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

Issue 1974613002: Remove code that was only used by navigator.connect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment Created 4 years, 7 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 namespace content { 49 namespace content {
50 50
51 class EmbeddedWorkerRegistry; 51 class EmbeddedWorkerRegistry;
52 class ServiceWorkerContextCore; 52 class ServiceWorkerContextCore;
53 class ServiceWorkerProviderHost; 53 class ServiceWorkerProviderHost;
54 class ServiceWorkerRegistration; 54 class ServiceWorkerRegistration;
55 class ServiceWorkerURLRequestJob; 55 class ServiceWorkerURLRequestJob;
56 struct ServiceWorkerClientInfo; 56 struct ServiceWorkerClientInfo;
57 struct ServiceWorkerVersionInfo; 57 struct ServiceWorkerVersionInfo;
58 struct TransferredMessagePort;
59 58
60 // This class corresponds to a specific version of a ServiceWorker 59 // This class corresponds to a specific version of a ServiceWorker
61 // script for a given pattern. When a script is upgraded, there may be 60 // script for a given pattern. When a script is upgraded, there may be
62 // more than one ServiceWorkerVersion "running" at a time, but only 61 // more than one ServiceWorkerVersion "running" at a time, but only
63 // one of them is activated. This class connects the actual script with a 62 // one of them is activated. This class connects the actual script with a
64 // running worker. 63 // running worker.
65 class CONTENT_EXPORT ServiceWorkerVersion 64 class CONTENT_EXPORT ServiceWorkerVersion
66 : NON_EXPORTED_BASE(public base::RefCounted<ServiceWorkerVersion>), 65 : NON_EXPORTED_BASE(public base::RefCounted<ServiceWorkerVersion>),
67 public EmbeddedWorkerInstance::Listener { 66 public EmbeddedWorkerInstance::Listener {
68 public: 67 public:
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 void OnOpenWindow(int request_id, GURL url); 503 void OnOpenWindow(int request_id, GURL url);
505 void OnOpenWindowFinished(int request_id, 504 void OnOpenWindowFinished(int request_id,
506 ServiceWorkerStatusCode status, 505 ServiceWorkerStatusCode status,
507 const ServiceWorkerClientInfo& client_info); 506 const ServiceWorkerClientInfo& client_info);
508 507
509 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); 508 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data);
510 void OnSetCachedMetadataFinished(int64_t callback_id, int result); 509 void OnSetCachedMetadataFinished(int64_t callback_id, int result);
511 void OnClearCachedMetadata(const GURL& url); 510 void OnClearCachedMetadata(const GURL& url);
512 void OnClearCachedMetadataFinished(int64_t callback_id, int result); 511 void OnClearCachedMetadataFinished(int64_t callback_id, int result);
513 512
514 void OnPostMessageToClient( 513 void OnPostMessageToClient(const std::string& client_uuid,
515 const std::string& client_uuid, 514 const base::string16& message,
516 const base::string16& message, 515 const std::vector<int>& sent_message_ports);
517 const std::vector<TransferredMessagePort>& sent_message_ports);
518 void OnFocusClient(int request_id, const std::string& client_uuid); 516 void OnFocusClient(int request_id, const std::string& client_uuid);
519 void OnNavigateClient(int request_id, 517 void OnNavigateClient(int request_id,
520 const std::string& client_uuid, 518 const std::string& client_uuid,
521 const GURL& url); 519 const GURL& url);
522 void OnNavigateClientFinished(int request_id, 520 void OnNavigateClientFinished(int request_id,
523 ServiceWorkerStatusCode status, 521 ServiceWorkerStatusCode status,
524 const ServiceWorkerClientInfo& client_info); 522 const ServiceWorkerClientInfo& client_info);
525 void OnSkipWaiting(int request_id); 523 void OnSkipWaiting(int request_id);
526 void OnClaimClients(int request_id); 524 void OnClaimClients(int request_id);
527 void OnPongFromWorker(); 525 void OnPongFromWorker();
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 751
754 // At this point |this| can have been deleted, so don't do anything other 752 // At this point |this| can have been deleted, so don't do anything other
755 // than returning. 753 // than returning.
756 754
757 return true; 755 return true;
758 } 756 }
759 757
760 } // namespace content 758 } // namespace content
761 759
762 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 760 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698