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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.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 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 double eventDispatchTime) = 0; 101 double eventDispatchTime) = 0;
102 virtual void didHandlePushEvent(int pushEventID, 102 virtual void didHandlePushEvent(int pushEventID,
103 WebServiceWorkerEventResult, 103 WebServiceWorkerEventResult,
104 double eventDispatchTime) = 0; 104 double eventDispatchTime) = 0;
105 virtual void didHandleSyncEvent(int syncEventID, 105 virtual void didHandleSyncEvent(int syncEventID,
106 WebServiceWorkerEventResult, 106 WebServiceWorkerEventResult,
107 double eventDispatchTime) = 0; 107 double eventDispatchTime) = 0;
108 virtual void didHandlePaymentRequestEvent(int paymentRequestEventID, 108 virtual void didHandlePaymentRequestEvent(int paymentRequestEventID,
109 WebServiceWorkerEventResult, 109 WebServiceWorkerEventResult,
110 double eventDispatchTime) = 0; 110 double eventDispatchTime) = 0;
111 virtual void postMessageToClient( 111 virtual void postMessageToClient(const WebString& clientUUID,
112 const WebString& clientUUID, 112 const WebString& message,
113 const WebString& message, 113 WebMessagePortChannelArray) = 0;
114 std::unique_ptr<WebMessagePortChannelArray>) = 0;
115 virtual void skipWaiting( 114 virtual void skipWaiting(
116 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) = 0; 115 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) = 0;
117 virtual void claim( 116 virtual void claim(
118 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) = 0; 117 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) = 0;
119 virtual void focus(const WebString& clientUUID, 118 virtual void focus(const WebString& clientUUID,
120 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; 119 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
121 virtual void navigate(const WebString& clientUUID, 120 virtual void navigate(const WebString& clientUUID,
122 const WebURL&, 121 const WebURL&,
123 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; 122 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
124 virtual void registerForeignFetchScopes( 123 virtual void registerForeignFetchScopes(
125 const WebVector<WebURL>& subScopes, 124 const WebVector<WebURL>& subScopes,
126 const WebVector<WebSecurityOrigin>&) = 0; 125 const WebVector<WebSecurityOrigin>&) = 0;
127 126
128 static const char* supplementName(); 127 static const char* supplementName();
129 static ServiceWorkerGlobalScopeClient* from(ExecutionContext*); 128 static ServiceWorkerGlobalScopeClient* from(ExecutionContext*);
130 129
131 protected: 130 protected:
132 ServiceWorkerGlobalScopeClient() {} 131 ServiceWorkerGlobalScopeClient() {}
133 }; 132 };
134 133
135 MODULES_EXPORT void provideServiceWorkerGlobalScopeClientToWorker( 134 MODULES_EXPORT void provideServiceWorkerGlobalScopeClientToWorker(
136 WorkerClients*, 135 WorkerClients*,
137 ServiceWorkerGlobalScopeClient*); 136 ServiceWorkerGlobalScopeClient*);
138 137
139 } // namespace blink 138 } // namespace blink
140 139
141 #endif // ServiceWorkerGlobalScopeClient_h 140 #endif // ServiceWorkerGlobalScopeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698