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

Unified Diff: content/renderer/service_worker/service_worker_context_client.h

Issue 2399933003: Revert of Mojoify FetchEvent of Service Worker. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « content/common/typemaps.gni ('k') | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/service_worker/service_worker_context_client.h
diff --git a/content/renderer/service_worker/service_worker_context_client.h b/content/renderer/service_worker/service_worker_context_client.h
index 6d6b246e2fe2be879d4fb46bcbaa13899a46d960..da4afca71072cce9a7c5871f73c1d9263146a2ba 100644
--- a/content/renderer/service_worker/service_worker_context_client.h
+++ b/content/renderer/service_worker/service_worker_context_client.h
@@ -20,7 +20,6 @@
#include "base/strings/string16.h"
#include "base/time/time.h"
#include "content/child/webmessageportchannel_impl.h"
-#include "content/common/service_worker/service_worker_status_code.h"
#include "content/common/service_worker/service_worker_types.h"
#include "ipc/ipc_listener.h"
#include "services/shell/public/interfaces/interface_provider.mojom.h"
@@ -67,9 +66,6 @@
public:
using SyncCallback =
base::Callback<void(blink::mojom::ServiceWorkerEventStatus,
- base::Time /* dispatch_event_time */)>;
- using FetchCallback =
- base::Callback<void(ServiceWorkerStatusCode,
base::Time /* dispatch_event_time */)>;
// Returns a thread-specific client instance. This does NOT create a
@@ -198,7 +194,6 @@
private:
struct WorkerContextData;
- class FetchEventDispatcherImpl;
// Get routing_id for sending message to the ServiceWorkerVersion
// in the browser process.
@@ -215,9 +210,9 @@
int request_id,
const ServiceWorkerMsg_ExtendableMessageEvent_Params& params);
void OnInstallEvent(int request_id);
- void DispatchFetchEvent(int response_id,
- const ServiceWorkerFetchRequest& request,
- const FetchCallback& callback);
+ void OnFetchEvent(int response_id,
+ int event_finish_id,
+ const ServiceWorkerFetchRequest& request);
void OnNotificationClickEvent(
int request_id,
const std::string& notification_id,
« no previous file with comments | « content/common/typemaps.gni ('k') | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698