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

Side by Side Diff: public/web/WebServiceWorkerContextClient.h

Issue 1191083002: BackgroundSync sync events need to be ExtendableEvents, blink side cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEv entResult result) { } 127 virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEv entResult result) { }
128 128
129 // ServiceWorker specific method. Called after PushEvent (dispatched via 129 // ServiceWorker specific method. Called after PushEvent (dispatched via
130 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script 130 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
131 // context. 131 // context.
132 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult result) { } 132 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult result) { }
133 133
134 // ServiceWorker specific method. Called after SyncEvent (dispatched via 134 // ServiceWorker specific method. Called after SyncEvent (dispatched via
135 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script 135 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
136 // context. 136 // context.
137 // TODO(chasej): crbug.com/486890 - Remove after cleanup on content side
138 virtual void didHandleSyncEventDeprecated(int syncEventID) { }
139 virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult result) { } 137 virtual void didHandleSyncEvent(int syncEventID, WebServiceWorkerEventResult result) { }
140 138
141 // ServiceWorker specific method. Called after CrossOriginConnectEvent 139 // ServiceWorker specific method. Called after CrossOriginConnectEvent
142 // (dispatched via WebServiceWorkerContextProxy) is handled by the 140 // (dispatched via WebServiceWorkerContextProxy) is handled by the
143 // ServiceWorker's script context. 141 // ServiceWorker's script context.
144 virtual void didHandleCrossOriginConnectEvent(int connectEventID, bool accep tConnect) { } 142 virtual void didHandleCrossOriginConnectEvent(int connectEventID, bool accep tConnect) { }
145 143
146 // Ownership of the returned object is transferred to the caller. 144 // Ownership of the returned object is transferred to the caller.
147 // This is called on the main thread. 145 // This is called on the main thread.
148 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; } 146 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // should delete the callback after calling either onSuccess or onError. 187 // should delete the callback after calling either onSuccess or onError.
190 virtual void focus(const WebString& uuid, WebServiceWorkerClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } 188 virtual void focus(const WebString& uuid, WebServiceWorkerClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
191 189
192 // Ownership of the passed WebMessagePortChannel is NOT passed to the callee . 190 // Ownership of the passed WebMessagePortChannel is NOT passed to the callee .
193 virtual void stashMessagePort(WebMessagePortChannel*, const WebString& name) { BLINK_ASSERT_NOT_REACHED(); } 191 virtual void stashMessagePort(WebMessagePortChannel*, const WebString& name) { BLINK_ASSERT_NOT_REACHED(); }
194 }; 192 };
195 193
196 } // namespace blink 194 } // namespace blink
197 195
198 #endif // WebServiceWorkerContextClient_h 196 #endif // WebServiceWorkerContextClient_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698