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

Side by Side Diff: content/browser/service_worker/service_worker_version.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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 577
578 // Message handlers. 578 // Message handlers.
579 579
580 // This corresponds to the spec's get(id) steps. 580 // This corresponds to the spec's get(id) steps.
581 void OnGetClient(int request_id, const std::string& client_uuid); 581 void OnGetClient(int request_id, const std::string& client_uuid);
582 582
583 // This corresponds to the spec's matchAll(options) steps. 583 // This corresponds to the spec's matchAll(options) steps.
584 void OnGetClients(int request_id, 584 void OnGetClients(int request_id,
585 const ServiceWorkerClientQueryOptions& options); 585 const ServiceWorkerClientQueryOptions& options);
586 586
587 void OnOpenWindow(int request_id, GURL url); 587 void OnOpenWindow(int request_id, GURL redirect_url, GURL url);
588 void OnOpenWindowFinished(int request_id, 588 void OnOpenWindowFinished(int request_id,
589 ServiceWorkerStatusCode status, 589 ServiceWorkerStatusCode status,
590 const ServiceWorkerClientInfo& client_info); 590 const ServiceWorkerClientInfo& client_info);
591 591
592 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); 592 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data);
593 void OnSetCachedMetadataFinished(int64_t callback_id, int result); 593 void OnSetCachedMetadataFinished(int64_t callback_id, int result);
594 void OnClearCachedMetadata(const GURL& url); 594 void OnClearCachedMetadata(const GURL& url);
595 void OnClearCachedMetadataFinished(int64_t callback_id, int result); 595 void OnClearCachedMetadataFinished(int64_t callback_id, int result);
596 596
597 void OnPostMessageToClient( 597 void OnPostMessageToClient(
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 828
829 // At this point |this| can have been deleted, so don't do anything other 829 // At this point |this| can have been deleted, so don't do anything other
830 // than returning. 830 // than returning.
831 831
832 return true; 832 return true;
833 } 833 }
834 834
835 } // namespace content 835 } // namespace content
836 836
837 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 837 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698