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

Side by Side Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp

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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) { 52 std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) {
53 client_.GetClient(id, std::move(callbacks)); 53 client_.GetClient(id, std::move(callbacks));
54 } 54 }
55 55
56 void ServiceWorkerGlobalScopeClientImpl::GetClients( 56 void ServiceWorkerGlobalScopeClientImpl::GetClients(
57 const WebServiceWorkerClientQueryOptions& options, 57 const WebServiceWorkerClientQueryOptions& options,
58 std::unique_ptr<WebServiceWorkerClientsCallbacks> callbacks) { 58 std::unique_ptr<WebServiceWorkerClientsCallbacks> callbacks) {
59 client_.GetClients(options, std::move(callbacks)); 59 client_.GetClients(options, std::move(callbacks));
60 } 60 }
61 61
62 void ServiceWorkerGlobalScopeClientImpl::OpenWindow( 62 void ServiceWorkerGlobalScopeClientImpl::OpenWindowForClients(
63 const WebURL& url, 63 const WebURL& url,
64 std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) { 64 std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) {
65 client_.OpenWindow(url, std::move(callbacks)); 65 client_.OpenWindowForClients(url, std::move(callbacks));
66 }
67
68 void ServiceWorkerGlobalScopeClientImpl::OpenWindowForPaymentHandler(
69 const WebURL& url,
70 std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) {
71 client_.OpenWindowForPaymentHandler(url, std::move(callbacks));
66 } 72 }
67 73
68 void ServiceWorkerGlobalScopeClientImpl::SetCachedMetadata(const WebURL& url, 74 void ServiceWorkerGlobalScopeClientImpl::SetCachedMetadata(const WebURL& url,
69 const char* data, 75 const char* data,
70 size_t size) { 76 size_t size) {
71 client_.SetCachedMetadata(url, data, size); 77 client_.SetCachedMetadata(url, data, size);
72 } 78 }
73 79
74 void ServiceWorkerGlobalScopeClientImpl::ClearCachedMetadata( 80 void ServiceWorkerGlobalScopeClientImpl::ClearCachedMetadata(
75 const WebURL& url) { 81 const WebURL& url) {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 const WebVector<WebURL>& sub_scopes, 250 const WebVector<WebURL>& sub_scopes,
245 const WebVector<WebSecurityOrigin>& origins) { 251 const WebVector<WebSecurityOrigin>& origins) {
246 client_.RegisterForeignFetchScopes(install_event_id, sub_scopes, origins); 252 client_.RegisterForeignFetchScopes(install_event_id, sub_scopes, origins);
247 } 253 }
248 254
249 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( 255 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(
250 WebServiceWorkerContextClient& client) 256 WebServiceWorkerContextClient& client)
251 : client_(client) {} 257 : client_(client) {}
252 258
253 } // namespace blink 259 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698