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

Unified Diff: content/browser/service_worker/service_worker_version.h

Issue 2893823004: [Payments] Implement openWindow for service worker based payment handler (Closed)
Patch Set: rename ipc messages 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_version.h
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
index 917fe64bf6a7e3eb4836136bace13309dd57bb6c..be7a20773b902eaec4c53b6cca327aa21ee5305b 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -41,6 +41,7 @@
#include "mojo/public/cpp/bindings/interface_ptr.h"
#include "services/service_manager/public/cpp/interface_provider.h"
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerEventResult.h"
+#include "ui/base/mojo/window_open_disposition.mojom.h"
#include "url/gurl.h"
#include "url/origin.h"
@@ -584,7 +585,15 @@ class CONTENT_EXPORT ServiceWorkerVersion
void OnGetClients(int request_id,
const ServiceWorkerClientQueryOptions& options);
- void OnOpenWindow(int request_id, GURL url);
+ // Currently used for Clients.openWindow() only.
+ void OnOpenNewTab(int request_id, const GURL& url);
+
+ // Currently used for PaymentRequestEvent.openWindow() only.
+ void OnOpenNewPopup(int request_id, const GURL& url);
+
+ void OnOpenWindow(int request_id,
+ GURL url,
+ WindowOpenDisposition disposition);
void OnOpenWindowFinished(int request_id,
ServiceWorkerStatusCode status,
const ServiceWorkerClientInfo& client_info);

Powered by Google App Engine
This is Rietveld 408576698