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

Side by Side Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h

Issue 1439333002: Service Worker: Add Clients.get(id) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Filter out off-origin match; fix layout test Created 4 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) 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Ownership of the returned object is transferred to the caller. 137 // Ownership of the returned object is transferred to the caller.
138 // This is called on the main thread. 138 // This is called on the main thread.
139 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; } 139 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; }
140 140
141 // Ownership of the returned object is transferred to the caller. 141 // Ownership of the returned object is transferred to the caller.
142 // This is called on the main thread. 142 // This is called on the main thread.
143 virtual WebServiceWorkerProvider* createServiceWorkerProvider() { return nul lptr; } 143 virtual WebServiceWorkerProvider* createServiceWorkerProvider() { return nul lptr; }
144 144
145 // Ownership of the passed callbacks is transferred to the callee, callee 145 // Ownership of the passed callbacks is transferred to the callee, callee
146 // should delete the callbacks after calling either onSuccess or onError. 146 // should delete the callbacks after calling either onSuccess or onError.
147 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are
148 // passed to the WebServiceWorkerClientCallbacks implementation.
149 virtual void getClient(const WebString&, WebServiceWorkerClientCallbacks* ca llbacks) { BLINK_ASSERT_NOT_REACHED(); }
150
151 // Ownership of the passed callbacks is transferred to the callee, callee
152 // should delete the callbacks after calling either onSuccess or onError.
147 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are 153 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are
148 // passed to the WebServiceWorkerClientsCallbacks implementation. 154 // passed to the WebServiceWorkerClientsCallbacks implementation.
149 virtual void getClients(const WebServiceWorkerClientQueryOptions&, WebServic eWorkerClientsCallbacks* callbacks) { BLINK_ASSERT_NOT_REACHED(); } 155 virtual void getClients(const WebServiceWorkerClientQueryOptions&, WebServic eWorkerClientsCallbacks* callbacks) { BLINK_ASSERT_NOT_REACHED(); }
150 156
151 // Ownership of the passed callbacks is transferred to the callee, callee 157 // Ownership of the passed callbacks is transferred to the callee, callee
152 // should delete the callbacks after calling either onSuccess or onError. 158 // should delete the callbacks after calling either onSuccess or onError.
153 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are 159 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are
154 // passed to the WebServiceWorkerClientsCallbacks implementation. 160 // passed to the WebServiceWorkerClientsCallbacks implementation.
155 virtual void openWindow(const WebURL& url, WebServiceWorkerClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } 161 virtual void openWindow(const WebURL& url, WebServiceWorkerClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
156 162
(...skipping 30 matching lines...) Expand all
187 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } 193 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
188 194
189 // Called when the worker wants to register subscopes to handle via foreign 195 // Called when the worker wants to register subscopes to handle via foreign
190 // fetch. Will only be called while an install event is in progress. 196 // fetch. Will only be called while an install event is in progress.
191 virtual void registerForeignFetchScopes(const WebVector<WebURL>& subScopes) { BLINK_ASSERT_NOT_REACHED(); } 197 virtual void registerForeignFetchScopes(const WebVector<WebURL>& subScopes) { BLINK_ASSERT_NOT_REACHED(); }
192 }; 198 };
193 199
194 } // namespace blink 200 } // namespace blink
195 201
196 #endif // WebServiceWorkerContextClient_h 202 #endif // WebServiceWorkerContextClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698