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

Side by Side Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.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) 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 const char* data, 240 const char* data,
241 size_t size) {} 241 size_t size) {}
242 242
243 // A suggestion to clear the cached metadata in association with this URL. 243 // A suggestion to clear the cached metadata in association with this URL.
244 virtual void clearCachedMetadata(const WebURL& url) {} 244 virtual void clearCachedMetadata(const WebURL& url) {}
245 245
246 // Callee receives ownership of the passed vector. 246 // Callee receives ownership of the passed vector.
247 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/351753 247 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/351753
248 virtual void postMessageToClient(const WebString& uuid, 248 virtual void postMessageToClient(const WebString& uuid,
249 const WebString&, 249 const WebString&,
250 WebMessagePortChannelArray*) = 0; 250 WebMessagePortChannelArray) = 0;
251 251
252 // Ownership of the passed callbacks is transferred to the callee, callee 252 // Ownership of the passed callbacks is transferred to the callee, callee
253 // should delete the callbacks after run. 253 // should delete the callbacks after run.
254 virtual void skipWaiting( 254 virtual void skipWaiting(
255 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) = 0; 255 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) = 0;
256 256
257 // Ownership of the passed callbacks is transferred to the callee, callee 257 // Ownership of the passed callbacks is transferred to the callee, callee
258 // should delete the callbacks after run. 258 // should delete the callbacks after run.
259 virtual void claim( 259 virtual void claim(
260 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) = 0; 260 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) = 0;
(...skipping 14 matching lines...) Expand all
275 // Called when the worker wants to register subscopes to handle via foreign 275 // Called when the worker wants to register subscopes to handle via foreign
276 // fetch. Will only be called while an install event is in progress. 276 // fetch. Will only be called while an install event is in progress.
277 virtual void registerForeignFetchScopes( 277 virtual void registerForeignFetchScopes(
278 const WebVector<WebURL>& subScopes, 278 const WebVector<WebURL>& subScopes,
279 const WebVector<WebSecurityOrigin>& origins) = 0; 279 const WebVector<WebSecurityOrigin>& origins) = 0;
280 }; 280 };
281 281
282 } // namespace blink 282 } // namespace blink
283 283
284 #endif // WebServiceWorkerContextClient_h 284 #endif // WebServiceWorkerContextClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698