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

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

Issue 2748213003: Service Worker event dispatcher for Background Fetch (Closed)
Patch Set: uma fix Created 3 years, 9 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void openWindow(const WebURL&, 70 virtual void openWindow(const WebURL&,
71 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; 71 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
72 virtual void setCachedMetadata(const WebURL&, const char*, size_t) = 0; 72 virtual void setCachedMetadata(const WebURL&, const char*, size_t) = 0;
73 virtual void clearCachedMetadata(const WebURL&) = 0; 73 virtual void clearCachedMetadata(const WebURL&) = 0;
74 74
75 virtual WebURL scope() const = 0; 75 virtual WebURL scope() const = 0;
76 76
77 virtual void didHandleActivateEvent(int eventID, 77 virtual void didHandleActivateEvent(int eventID,
78 WebServiceWorkerEventResult, 78 WebServiceWorkerEventResult,
79 double eventDispatchTime) = 0; 79 double eventDispatchTime) = 0;
80 virtual void didHandleBackgroundFetchAbortEvent(int eventID,
81 WebServiceWorkerEventResult,
82 double eventDispatchTime) = 0;
83 virtual void didHandleBackgroundFetchClickEvent(int eventID,
84 WebServiceWorkerEventResult,
85 double eventDispatchTime) = 0;
80 virtual void didHandleExtendableMessageEvent(int eventID, 86 virtual void didHandleExtendableMessageEvent(int eventID,
81 WebServiceWorkerEventResult, 87 WebServiceWorkerEventResult,
82 double eventDispatchTime) = 0; 88 double eventDispatchTime) = 0;
83 // Calling respondToFetchEvent without response means no response was 89 // Calling respondToFetchEvent without response means no response was
84 // provided by the service worker in the fetch events, so fallback to native. 90 // provided by the service worker in the fetch events, so fallback to native.
85 virtual void respondToFetchEvent(int fetchEventID, 91 virtual void respondToFetchEvent(int fetchEventID,
86 double eventDispatchTime) = 0; 92 double eventDispatchTime) = 0;
87 virtual void respondToFetchEvent(int fetchEventID, 93 virtual void respondToFetchEvent(int fetchEventID,
88 const WebServiceWorkerResponse&, 94 const WebServiceWorkerResponse&,
89 double eventDispatchTime) = 0; 95 double eventDispatchTime) = 0;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 ServiceWorkerGlobalScopeClient() {} 137 ServiceWorkerGlobalScopeClient() {}
132 }; 138 };
133 139
134 MODULES_EXPORT void provideServiceWorkerGlobalScopeClientToWorker( 140 MODULES_EXPORT void provideServiceWorkerGlobalScopeClientToWorker(
135 WorkerClients*, 141 WorkerClients*,
136 ServiceWorkerGlobalScopeClient*); 142 ServiceWorkerGlobalScopeClient*);
137 143
138 } // namespace blink 144 } // namespace blink
139 145
140 #endif // ServiceWorkerGlobalScopeClient_h 146 #endif // ServiceWorkerGlobalScopeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698