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

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

Issue 2893823004: [Payments] Implement openWindow for service worker based payment handler (Closed)
Patch Set: rename ipc messages Created 3 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 | « third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp ('k') | 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are 265 // WebServiceWorkerClientsInfo and WebServiceWorkerError ownerships are
266 // passed to the WebServiceWorkerClientsCallbacks implementation. 266 // passed to the WebServiceWorkerClientsCallbacks implementation.
267 virtual void GetClients( 267 virtual void GetClients(
268 const WebServiceWorkerClientQueryOptions&, 268 const WebServiceWorkerClientQueryOptions&,
269 std::unique_ptr<WebServiceWorkerClientsCallbacks>) = 0; 269 std::unique_ptr<WebServiceWorkerClientsCallbacks>) = 0;
270 270
271 // Ownership of the passed callbacks is transferred to the callee, callee 271 // Ownership of the passed callbacks is transferred to the callee, callee
272 // should delete the callbacks after calling either onSuccess or onError. 272 // should delete the callbacks after calling either onSuccess or onError.
273 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are 273 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are
274 // passed to the WebServiceWorkerClientsCallbacks implementation. 274 // passed to the WebServiceWorkerClientsCallbacks implementation.
275 virtual void OpenWindow(const WebURL&, 275 virtual void OpenWindowForClients(
276 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; 276 const WebURL&,
277 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
278
279 // Similar like OpenWindowForClients above.
280 virtual void OpenWindowForPaymentHandler(
dcheng 2017/06/06 21:18:06 Btw, my point was that we should use a consistent
281 const WebURL&,
282 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
277 283
278 // A suggestion to cache this metadata in association with this URL. 284 // A suggestion to cache this metadata in association with this URL.
279 virtual void SetCachedMetadata(const WebURL& url, 285 virtual void SetCachedMetadata(const WebURL& url,
280 const char* data, 286 const char* data,
281 size_t size) {} 287 size_t size) {}
282 288
283 // A suggestion to clear the cached metadata in association with this URL. 289 // A suggestion to clear the cached metadata in association with this URL.
284 virtual void ClearCachedMetadata(const WebURL& url) {} 290 virtual void ClearCachedMetadata(const WebURL& url) {}
285 291
286 // Callee receives ownership of the passed vector. 292 // Callee receives ownership of the passed vector.
(...skipping 29 matching lines...) Expand all
316 // fetch. Will only be called while an install event is in progress. 322 // fetch. Will only be called while an install event is in progress.
317 virtual void RegisterForeignFetchScopes( 323 virtual void RegisterForeignFetchScopes(
318 int install_event_id, 324 int install_event_id,
319 const WebVector<WebURL>& sub_scopes, 325 const WebVector<WebURL>& sub_scopes,
320 const WebVector<WebSecurityOrigin>& origins) = 0; 326 const WebVector<WebSecurityOrigin>& origins) = 0;
321 }; 327 };
322 328
323 } // namespace blink 329 } // namespace blink
324 330
325 #endif // WebServiceWorkerContextClient_h 331 #endif // WebServiceWorkerContextClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698