OLD | NEW |
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 28 matching lines...) Expand all Loading... |
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 | 48 |
| 49 // Once the ServiceWorker has finished handling the sync event |
| 50 // didHandleSyncEvent is called on the context client. |
| 51 virtual void dispatchSyncEvent(int syncEventID) = 0; |
| 52 |
49 virtual void resumeWorkerContext() { } | 53 virtual void resumeWorkerContext() { } |
50 virtual void attachDevTools() { } | 54 virtual void attachDevTools() { } |
51 virtual void reattachDevTools(const WebString& savedState) { } | 55 virtual void reattachDevTools(const WebString& savedState) { } |
52 virtual void detachDevTools() { } | 56 virtual void detachDevTools() { } |
53 virtual void dispatchDevToolsMessage(const WebString&) { } | 57 virtual void dispatchDevToolsMessage(const WebString&) { } |
54 }; | 58 }; |
55 | 59 |
56 } // namespace blink | 60 } // namespace blink |
57 | 61 |
58 #endif // WebServiceWorkerContextProxy_h | 62 #endif // WebServiceWorkerContextProxy_h |
OLD | NEW |