OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |