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

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

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add metrics and support for non-ASCII text messages to Java endpoints Created 3 years, 11 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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 void OnOpenWindow(int request_id, GURL url); 652 void OnOpenWindow(int request_id, GURL url);
652 void OnOpenWindowFinished(int request_id, 653 void OnOpenWindowFinished(int request_id,
653 ServiceWorkerStatusCode status, 654 ServiceWorkerStatusCode status,
654 const ServiceWorkerClientInfo& client_info); 655 const ServiceWorkerClientInfo& client_info);
655 656
656 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); 657 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data);
657 void OnSetCachedMetadataFinished(int64_t callback_id, int result); 658 void OnSetCachedMetadataFinished(int64_t callback_id, int result);
658 void OnClearCachedMetadata(const GURL& url); 659 void OnClearCachedMetadata(const GURL& url);
659 void OnClearCachedMetadataFinished(int64_t callback_id, int result); 660 void OnClearCachedMetadataFinished(int64_t callback_id, int result);
660 661
661 void OnPostMessageToClient(const std::string& client_uuid, 662 void OnPostMessageToClient(
662 const base::string16& message, 663 const std::string& client_uuid,
663 const std::vector<int>& sent_message_ports); 664 const base::string16& message,
665 const std::vector<MessagePort>& sent_message_ports);
664 void OnFocusClient(int request_id, const std::string& client_uuid); 666 void OnFocusClient(int request_id, const std::string& client_uuid);
665 void OnNavigateClient(int request_id, 667 void OnNavigateClient(int request_id,
666 const std::string& client_uuid, 668 const std::string& client_uuid,
667 const GURL& url); 669 const GURL& url);
668 void OnNavigateClientFinished(int request_id, 670 void OnNavigateClientFinished(int request_id,
669 ServiceWorkerStatusCode status, 671 ServiceWorkerStatusCode status,
670 const ServiceWorkerClientInfo& client_info); 672 const ServiceWorkerClientInfo& client_info);
671 void OnSkipWaiting(int request_id); 673 void OnSkipWaiting(int request_id);
672 void OnClaimClients(int request_id); 674 void OnClaimClients(int request_id);
673 void OnPongFromWorker(); 675 void OnPongFromWorker();
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 902
901 // At this point |this| can have been deleted, so don't do anything other 903 // At this point |this| can have been deleted, so don't do anything other
902 // than returning. 904 // than returning.
903 905
904 return true; 906 return true;
905 } 907 }
906 908
907 } // namespace content 909 } // namespace content
908 910
909 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 911 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698