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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: Addressed comments from kinuko and haraken Created 3 years, 8 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 24 matching lines...) Expand all
35 #include "core/dom/MessagePort.h" 35 #include "core/dom/MessagePort.h"
36 #include "core/workers/WorkerClients.h" 36 #include "core/workers/WorkerClients.h"
37 #include "modules/ModulesExport.h" 37 #include "modules/ModulesExport.h"
38 #include "platform/wtf/Forward.h" 38 #include "platform/wtf/Forward.h"
39 #include "platform/wtf/Noncopyable.h" 39 #include "platform/wtf/Noncopyable.h"
40 #include "public/platform/WebMessagePortChannel.h" 40 #include "public/platform/WebMessagePortChannel.h"
41 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsClaimCall backs.h" 41 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsClaimCall backs.h"
42 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" 42 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h"
43 #include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h" 43 #include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h"
44 #include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallb acks.h" 44 #include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallb acks.h"
45 #include "public/platform/modules/serviceworker/WebServiceWorkerStreamHandle.h"
45 46
46 namespace blink { 47 namespace blink {
47 48
48 struct WebPaymentAppResponse; 49 struct WebPaymentAppResponse;
49 struct WebServiceWorkerClientQueryOptions; 50 struct WebServiceWorkerClientQueryOptions;
50 class ExecutionContext; 51 class ExecutionContext;
51 class WebServiceWorkerResponse; 52 class WebServiceWorkerResponse;
52 class WebURL; 53 class WebURL;
53 class WorkerClients; 54 class WorkerClients;
54 55
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual void DidHandleBackgroundFetchFailEvent( 90 virtual void DidHandleBackgroundFetchFailEvent(
90 int event_id, 91 int event_id,
91 WebServiceWorkerEventResult, 92 WebServiceWorkerEventResult,
92 double event_dispatch_time) = 0; 93 double event_dispatch_time) = 0;
93 virtual void DidHandleBackgroundFetchedEvent(int event_id, 94 virtual void DidHandleBackgroundFetchedEvent(int event_id,
94 WebServiceWorkerEventResult, 95 WebServiceWorkerEventResult,
95 double event_dispatch_time) = 0; 96 double event_dispatch_time) = 0;
96 virtual void DidHandleExtendableMessageEvent(int event_id, 97 virtual void DidHandleExtendableMessageEvent(int event_id,
97 WebServiceWorkerEventResult, 98 WebServiceWorkerEventResult,
98 double event_dispatch_time) = 0; 99 double event_dispatch_time) = 0;
99 // Calling respondToFetchEvent without response means no response was 100 virtual void RespondToFetchEventWithNoResponse(
100 // provided by the service worker in the fetch events, so fallback to native. 101 int fetch_event_id,
101 virtual void RespondToFetchEvent(int fetch_event_id, 102 double event_dispatch_time) = 0;
102 double event_dispatch_time) = 0;
103 virtual void RespondToFetchEvent(int fetch_event_id, 103 virtual void RespondToFetchEvent(int fetch_event_id,
104 const WebServiceWorkerResponse&, 104 const WebServiceWorkerResponse&,
105 double event_dispatch_time) = 0; 105 double event_dispatch_time) = 0;
106 virtual void RespondToFetchEventWithResponseStream(
107 int fetch_event_id,
108 const WebServiceWorkerResponse&,
109 WebServiceWorkerStreamHandle*,
110 double event_dispatch_time) = 0;
106 virtual void RespondToPaymentRequestEvent(int event_id, 111 virtual void RespondToPaymentRequestEvent(int event_id,
107 const WebPaymentAppResponse&, 112 const WebPaymentAppResponse&,
108 double event_dispatch_time) = 0; 113 double event_dispatch_time) = 0;
109 virtual void DidHandleFetchEvent(int fetch_event_id, 114 virtual void DidHandleFetchEvent(int fetch_event_id,
110 WebServiceWorkerEventResult, 115 WebServiceWorkerEventResult,
111 double event_dispatch_time) = 0; 116 double event_dispatch_time) = 0;
112 virtual void DidHandleInstallEvent(int install_event_id, 117 virtual void DidHandleInstallEvent(int install_event_id,
113 WebServiceWorkerEventResult, 118 WebServiceWorkerEventResult,
114 double event_dispatch_time) = 0; 119 double event_dispatch_time) = 0;
115 virtual void DidHandleNotificationClickEvent(int event_id, 120 virtual void DidHandleNotificationClickEvent(int event_id,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 ServiceWorkerGlobalScopeClient() {} 155 ServiceWorkerGlobalScopeClient() {}
151 }; 156 };
152 157
153 MODULES_EXPORT void ProvideServiceWorkerGlobalScopeClientToWorker( 158 MODULES_EXPORT void ProvideServiceWorkerGlobalScopeClientToWorker(
154 WorkerClients*, 159 WorkerClients*,
155 ServiceWorkerGlobalScopeClient*); 160 ServiceWorkerGlobalScopeClient*);
156 161
157 } // namespace blink 162 } // namespace blink
158 163
159 #endif // ServiceWorkerGlobalScopeClient_h 164 #endif // ServiceWorkerGlobalScopeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698