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

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: address comments 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::OpenWindow(
63 const WebURL& redirect_url,
63 const WebURL& url, 64 const WebURL& url,
64 std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) { 65 std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) {
65 client_.OpenWindow(url, std::move(callbacks)); 66 client_.OpenWindow(redirect_url, url, std::move(callbacks));
66 } 67 }
67 68
68 void ServiceWorkerGlobalScopeClientImpl::SetCachedMetadata(const WebURL& url, 69 void ServiceWorkerGlobalScopeClientImpl::SetCachedMetadata(const WebURL& url,
69 const char* data, 70 const char* data,
70 size_t size) { 71 size_t size) {
71 client_.SetCachedMetadata(url, data, size); 72 client_.SetCachedMetadata(url, data, size);
72 } 73 }
73 74
74 void ServiceWorkerGlobalScopeClientImpl::ClearCachedMetadata( 75 void ServiceWorkerGlobalScopeClientImpl::ClearCachedMetadata(
75 const WebURL& url) { 76 const WebURL& url) {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 const WebVector<WebURL>& sub_scopes, 245 const WebVector<WebURL>& sub_scopes,
245 const WebVector<WebSecurityOrigin>& origins) { 246 const WebVector<WebSecurityOrigin>& origins) {
246 client_.RegisterForeignFetchScopes(install_event_id, sub_scopes, origins); 247 client_.RegisterForeignFetchScopes(install_event_id, sub_scopes, origins);
247 } 248 }
248 249
249 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( 250 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(
250 WebServiceWorkerContextClient& client) 251 WebServiceWorkerContextClient& client)
251 : client_(client) {} 252 : client_(client) {}
252 253
253 } // namespace blink 254 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698