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

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: address comments Created 3 years, 7 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 public: 63 public:
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& redirect_url,
zino 2017/05/25 17:02:42 It might be better to add a new method (e.g. OpenW
please use gerrit instead 2017/05/25 17:56:13 +1
gogerald1 2017/05/29 22:13:16 Done.
73 const WebURL&,
73 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; 74 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
74 virtual void SetCachedMetadata(const WebURL&, const char*, size_t) = 0; 75 virtual void SetCachedMetadata(const WebURL&, const char*, size_t) = 0;
75 virtual void ClearCachedMetadata(const WebURL&) = 0; 76 virtual void ClearCachedMetadata(const WebURL&) = 0;
76 77
77 virtual WebURL Scope() const = 0; 78 virtual WebURL Scope() const = 0;
78 79
79 virtual void DidHandleActivateEvent(int event_id, 80 virtual void DidHandleActivateEvent(int event_id,
80 WebServiceWorkerEventResult, 81 WebServiceWorkerEventResult,
81 double event_dispatch_time) = 0; 82 double event_dispatch_time) = 0;
82 virtual void DidHandleBackgroundFetchAbortEvent( 83 virtual void DidHandleBackgroundFetchAbortEvent(
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 ServiceWorkerGlobalScopeClient() {} 157 ServiceWorkerGlobalScopeClient() {}
157 }; 158 };
158 159
159 MODULES_EXPORT void ProvideServiceWorkerGlobalScopeClientToWorker( 160 MODULES_EXPORT void ProvideServiceWorkerGlobalScopeClientToWorker(
160 WorkerClients*, 161 WorkerClients*,
161 ServiceWorkerGlobalScopeClient*); 162 ServiceWorkerGlobalScopeClient*);
162 163
163 } // namespace blink 164 } // namespace blink
164 165
165 #endif // ServiceWorkerGlobalScopeClient_h 166 #endif // ServiceWorkerGlobalScopeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698