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

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

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add missing ScopedAsyncTaskScheduler instance for the new unit tests; required by a recent change t… Created 3 years, 10 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #ifdef SendMessage 49 #ifdef SendMessage
50 #undef SendMessage 50 #undef SendMessage
51 #endif 51 #endif
52 52
53 namespace net { 53 namespace net {
54 class HttpResponseInfo; 54 class HttpResponseInfo;
55 } 55 }
56 56
57 namespace content { 57 namespace content {
58 58
59 class MessagePort;
59 class ServiceWorkerContextCore; 60 class ServiceWorkerContextCore;
60 class ServiceWorkerProviderHost; 61 class ServiceWorkerProviderHost;
61 class ServiceWorkerRegistration; 62 class ServiceWorkerRegistration;
62 class ServiceWorkerURLRequestJob; 63 class ServiceWorkerURLRequestJob;
63 struct ServiceWorkerClientInfo; 64 struct ServiceWorkerClientInfo;
64 struct ServiceWorkerVersionInfo; 65 struct ServiceWorkerVersionInfo;
65 66
66 // This class corresponds to a specific version of a ServiceWorker 67 // This class corresponds to a specific version of a ServiceWorker
67 // script for a given pattern. When a script is upgraded, there may be 68 // script for a given pattern. When a script is upgraded, there may be
68 // more than one ServiceWorkerVersion "running" at a time, but only 69 // more than one ServiceWorkerVersion "running" at a time, but only
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 void OnOpenWindow(int request_id, GURL url); 653 void OnOpenWindow(int request_id, GURL url);
653 void OnOpenWindowFinished(int request_id, 654 void OnOpenWindowFinished(int request_id,
654 ServiceWorkerStatusCode status, 655 ServiceWorkerStatusCode status,
655 const ServiceWorkerClientInfo& client_info); 656 const ServiceWorkerClientInfo& client_info);
656 657
657 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); 658 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data);
658 void OnSetCachedMetadataFinished(int64_t callback_id, int result); 659 void OnSetCachedMetadataFinished(int64_t callback_id, int result);
659 void OnClearCachedMetadata(const GURL& url); 660 void OnClearCachedMetadata(const GURL& url);
660 void OnClearCachedMetadataFinished(int64_t callback_id, int result); 661 void OnClearCachedMetadataFinished(int64_t callback_id, int result);
661 662
662 void OnPostMessageToClient(const std::string& client_uuid, 663 void OnPostMessageToClient(
663 const base::string16& message, 664 const std::string& client_uuid,
664 const std::vector<int>& sent_message_ports); 665 const base::string16& message,
666 const std::vector<MessagePort>& sent_message_ports);
665 void OnFocusClient(int request_id, const std::string& client_uuid); 667 void OnFocusClient(int request_id, const std::string& client_uuid);
666 void OnNavigateClient(int request_id, 668 void OnNavigateClient(int request_id,
667 const std::string& client_uuid, 669 const std::string& client_uuid,
668 const GURL& url); 670 const GURL& url);
669 void OnNavigateClientFinished(int request_id, 671 void OnNavigateClientFinished(int request_id,
670 ServiceWorkerStatusCode status, 672 ServiceWorkerStatusCode status,
671 const ServiceWorkerClientInfo& client_info); 673 const ServiceWorkerClientInfo& client_info);
672 void OnSkipWaiting(int request_id); 674 void OnSkipWaiting(int request_id);
673 void OnClaimClients(int request_id); 675 void OnClaimClients(int request_id);
674 void OnPongFromWorker(); 676 void OnPongFromWorker();
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 914
913 // At this point |this| can have been deleted, so don't do anything other 915 // At this point |this| can have been deleted, so don't do anything other
914 // than returning. 916 // than returning.
915 917
916 return true; 918 return true;
917 } 919 }
918 920
919 } // namespace content 921 } // namespace content
920 922
921 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 923 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698