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

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: 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 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 23 matching lines...) Expand all
34 #include "content/browser/service_worker/service_worker_script_cache_map.h" 34 #include "content/browser/service_worker/service_worker_script_cache_map.h"
35 #include "content/common/content_export.h" 35 #include "content/common/content_export.h"
36 #include "content/common/origin_trials/trial_token_validator.h" 36 #include "content/common/origin_trials/trial_token_validator.h"
37 #include "content/common/service_worker/service_worker_event_dispatcher.mojom.h" 37 #include "content/common/service_worker/service_worker_event_dispatcher.mojom.h"
38 #include "content/common/service_worker/service_worker_status_code.h" 38 #include "content/common/service_worker/service_worker_status_code.h"
39 #include "content/common/service_worker/service_worker_types.h" 39 #include "content/common/service_worker/service_worker_types.h"
40 #include "ipc/ipc_message.h" 40 #include "ipc/ipc_message.h"
41 #include "mojo/public/cpp/bindings/interface_ptr.h" 41 #include "mojo/public/cpp/bindings/interface_ptr.h"
42 #include "services/service_manager/public/cpp/interface_provider.h" 42 #include "services/service_manager/public/cpp/interface_provider.h"
43 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerEventResult.h" 43 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerEventResult.h"
44 #include "ui/base/mojo/window_open_disposition.mojom.h"
44 #include "url/gurl.h" 45 #include "url/gurl.h"
45 #include "url/origin.h" 46 #include "url/origin.h"
46 47
47 // Windows headers will redefine SendMessage. 48 // Windows headers will redefine SendMessage.
48 #ifdef SendMessage 49 #ifdef SendMessage
49 #undef SendMessage 50 #undef SendMessage
50 #endif 51 #endif
51 52
52 namespace net { 53 namespace net {
53 class HttpResponseInfo; 54 class HttpResponseInfo;
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 578
578 // Message handlers. 579 // Message handlers.
579 580
580 // This corresponds to the spec's get(id) steps. 581 // This corresponds to the spec's get(id) steps.
581 void OnGetClient(int request_id, const std::string& client_uuid); 582 void OnGetClient(int request_id, const std::string& client_uuid);
582 583
583 // This corresponds to the spec's matchAll(options) steps. 584 // This corresponds to the spec's matchAll(options) steps.
584 void OnGetClients(int request_id, 585 void OnGetClients(int request_id,
585 const ServiceWorkerClientQueryOptions& options); 586 const ServiceWorkerClientQueryOptions& options);
586 587
587 void OnOpenWindow(int request_id, GURL url); 588 // Currently used for Clients.openWindow() only.
589 void OnOpenNewTab(int request_id, const GURL& url);
590
591 // Currently used for PaymentRequestEvent.openWindow() only.
592 void OnOpenNewPopup(int request_id, const GURL& url);
593
594 void OnOpenWindow(int request_id,
595 GURL url,
596 WindowOpenDisposition disposition);
588 void OnOpenWindowFinished(int request_id, 597 void OnOpenWindowFinished(int request_id,
589 ServiceWorkerStatusCode status, 598 ServiceWorkerStatusCode status,
590 const ServiceWorkerClientInfo& client_info); 599 const ServiceWorkerClientInfo& client_info);
591 600
592 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data); 601 void OnSetCachedMetadata(const GURL& url, const std::vector<char>& data);
593 void OnSetCachedMetadataFinished(int64_t callback_id, int result); 602 void OnSetCachedMetadataFinished(int64_t callback_id, int result);
594 void OnClearCachedMetadata(const GURL& url); 603 void OnClearCachedMetadata(const GURL& url);
595 void OnClearCachedMetadataFinished(int64_t callback_id, int result); 604 void OnClearCachedMetadataFinished(int64_t callback_id, int result);
596 605
597 void OnPostMessageToClient( 606 void OnPostMessageToClient(
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 837
829 // At this point |this| can have been deleted, so don't do anything other 838 // At this point |this| can have been deleted, so don't do anything other
830 // than returning. 839 // than returning.
831 840
832 return true; 841 return true;
833 } 842 }
834 843
835 } // namespace content 844 } // namespace content
836 845
837 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 846 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698