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 27 matching lines...) Expand all Loading... | |
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 |
OLD | NEW |