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

Side by Side Diff: public/web/WebServiceWorkerContextClient.h

Issue 205013002: The blink half of the new ServiceWorker 'sync' event. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // ServiceWorker specific method. Called after InstallEvent (dispatched 77 // ServiceWorker specific method. Called after InstallEvent (dispatched
78 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's 78 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's
79 // script context. 79 // script context.
80 virtual void didHandleInstallEvent(int installEventID) { } 80 virtual void didHandleInstallEvent(int installEventID) { }
81 81
82 // ServiceWorker specific methods. Called after FetchEvent is handled by the 82 // ServiceWorker specific methods. Called after FetchEvent is handled by the
83 // ServiceWorker's script context. When no response is provided, the browser 83 // ServiceWorker's script context. When no response is provided, the browser
84 // should fallback to native fetch. 84 // should fallback to native fetch.
85 virtual void didHandleFetchEvent(int fetchEventID) { } 85 virtual void didHandleFetchEvent(int fetchEventID) { }
86 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse& response) { } 86 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse& response) { }
87
88 // ServiceWorker specific method. Called after SyncEvent (dispatched via
89 // WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
90 // context.
91 virtual void didHandleSyncEvent(int syncEventID) { }
87 }; 92 };
88 93
89 } // namespace blink 94 } // namespace blink
90 95
91 #endif // WebWorkerContextClient_h 96 #endif // WebWorkerContextClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698