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

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

Issue 2931953002: [Payments] Rename openWindowForClients and openWindowForPaymentHandler (Closed)
Patch Set: address nit 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::OpenWindowForClients( 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_.OpenWindowForClients(url, std::move(callbacks)); 65 client_.OpenNewTab(url, std::move(callbacks));
66 } 66 }
67 67
68 void ServiceWorkerGlobalScopeClientImpl::OpenWindowForPaymentHandler( 68 void ServiceWorkerGlobalScopeClientImpl::OpenWindowForPaymentHandler(
69 const WebURL& url, 69 const WebURL& url,
70 std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) { 70 std::unique_ptr<WebServiceWorkerClientCallbacks> callbacks) {
71 client_.OpenWindowForPaymentHandler(url, std::move(callbacks)); 71 client_.OpenNewPopup(url, std::move(callbacks));
72 } 72 }
73 73
74 void ServiceWorkerGlobalScopeClientImpl::SetCachedMetadata(const WebURL& url, 74 void ServiceWorkerGlobalScopeClientImpl::SetCachedMetadata(const WebURL& url,
75 const char* data, 75 const char* data,
76 size_t size) { 76 size_t size) {
77 client_.SetCachedMetadata(url, data, size); 77 client_.SetCachedMetadata(url, data, size);
78 } 78 }
79 79
80 void ServiceWorkerGlobalScopeClientImpl::ClearCachedMetadata( 80 void ServiceWorkerGlobalScopeClientImpl::ClearCachedMetadata(
81 const WebURL& url) { 81 const WebURL& url) {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 const WebVector<WebURL>& sub_scopes, 250 const WebVector<WebURL>& sub_scopes,
251 const WebVector<WebSecurityOrigin>& origins) { 251 const WebVector<WebSecurityOrigin>& origins) {
252 client_.RegisterForeignFetchScopes(install_event_id, sub_scopes, origins); 252 client_.RegisterForeignFetchScopes(install_event_id, sub_scopes, origins);
253 } 253 }
254 254
255 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl( 255 ServiceWorkerGlobalScopeClientImpl::ServiceWorkerGlobalScopeClientImpl(
256 WebServiceWorkerContextClient& client) 256 WebServiceWorkerContextClient& client)
257 : client_(client) {} 257 : client_(client) {}
258 258
259 } // namespace blink 259 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698