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

Side by Side Diff: public/web/WebServiceWorkerContextProxy.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 27 matching lines...) Expand all
38 // A proxy interface to talk to the worker's GlobalScope implementation. 38 // A proxy interface to talk to the worker's GlobalScope implementation.
39 // All methods of this class must be called on the worker thread. 39 // All methods of this class must be called on the worker thread.
40 class WebServiceWorkerContextProxy { 40 class WebServiceWorkerContextProxy {
41 public: 41 public:
42 virtual ~WebServiceWorkerContextProxy() { } 42 virtual ~WebServiceWorkerContextProxy() { }
43 43
44 // FIXME: This needs to pass the active service worker info. 44 // FIXME: This needs to pass the active service worker info.
45 virtual void dispatchInstallEvent(int installEventID) = 0; 45 virtual void dispatchInstallEvent(int installEventID) = 0;
46 // FIXME: This needs to pass the fetch request info. 46 // FIXME: This needs to pass the fetch request info.
47 virtual void dispatchFetchEvent(int fetchEventID) = 0; 47 virtual void dispatchFetchEvent(int fetchEventID) = 0;
48 // FIXME: This needs to pass the active service worker info.
michaeln 2014/03/20 23:07:28 The fixme comment seems out of place for this even
jkarlin 2014/03/21 16:50:55 Thanks for the catch.
49 virtual void dispatchSyncEvent(int syncEventID) = 0;
48 50
49 virtual void resumeWorkerContext() { } 51 virtual void resumeWorkerContext() { }
50 virtual void attachDevTools() { } 52 virtual void attachDevTools() { }
51 virtual void reattachDevTools(const WebString& savedState) { } 53 virtual void reattachDevTools(const WebString& savedState) { }
52 virtual void detachDevTools() { } 54 virtual void detachDevTools() { }
53 virtual void dispatchDevToolsMessage(const WebString&) { } 55 virtual void dispatchDevToolsMessage(const WebString&) { }
54 }; 56 };
55 57
56 } // namespace blink 58 } // namespace blink
57 59
58 #endif // WebServiceWorkerContextProxy_h 60 #endif // WebServiceWorkerContextProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698