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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h

Issue 2893823004: [Payments] Implement openWindow for service worker based payment handler (Closed)
Patch Set: correct file changes 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual ~ServiceWorkerGlobalScopeClient() {} 64 virtual ~ServiceWorkerGlobalScopeClient() {}
65 65
66 // Called from ServiceWorkerClients. 66 // Called from ServiceWorkerClients.
67 virtual void GetClient(const WebString&, 67 virtual void GetClient(const WebString&,
68 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; 68 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
69 virtual void GetClients( 69 virtual void GetClients(
70 const WebServiceWorkerClientQueryOptions&, 70 const WebServiceWorkerClientQueryOptions&,
71 std::unique_ptr<WebServiceWorkerClientsCallbacks>) = 0; 71 std::unique_ptr<WebServiceWorkerClientsCallbacks>) = 0;
72 virtual void OpenWindow(const WebURL&, 72 virtual void OpenWindow(const WebURL&,
73 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; 73 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
74 virtual void OpenWindowForPaymentHandle(
75 const WebURL& redirect_url,
76 const WebURL& url_to_open,
77 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
74 virtual void SetCachedMetadata(const WebURL&, const char*, size_t) = 0; 78 virtual void SetCachedMetadata(const WebURL&, const char*, size_t) = 0;
75 virtual void ClearCachedMetadata(const WebURL&) = 0; 79 virtual void ClearCachedMetadata(const WebURL&) = 0;
76 80
77 virtual WebURL Scope() const = 0; 81 virtual WebURL Scope() const = 0;
78 82
79 virtual void DidHandleActivateEvent(int event_id, 83 virtual void DidHandleActivateEvent(int event_id,
80 WebServiceWorkerEventResult, 84 WebServiceWorkerEventResult,
81 double event_dispatch_time) = 0; 85 double event_dispatch_time) = 0;
82 virtual void DidHandleBackgroundFetchAbortEvent( 86 virtual void DidHandleBackgroundFetchAbortEvent(
83 int event_id, 87 int event_id,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 ServiceWorkerGlobalScopeClient() {} 160 ServiceWorkerGlobalScopeClient() {}
157 }; 161 };
158 162
159 MODULES_EXPORT void ProvideServiceWorkerGlobalScopeClientToWorker( 163 MODULES_EXPORT void ProvideServiceWorkerGlobalScopeClientToWorker(
160 WorkerClients*, 164 WorkerClients*,
161 ServiceWorkerGlobalScopeClient*); 165 ServiceWorkerGlobalScopeClient*);
162 166
163 } // namespace blink 167 } // namespace blink
164 168
165 #endif // ServiceWorkerGlobalScopeClient_h 169 #endif // ServiceWorkerGlobalScopeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698