| 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 25 matching lines...) Expand all Loading... |
| 36 class WebString; | 36 class WebString; |
| 37 | 37 |
| 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. |
| 47 virtual void dispatchFetchEvent(int fetchEventID) = 0; |
| 46 | 48 |
| 47 virtual void resumeWorkerContext() { } | 49 virtual void resumeWorkerContext() { } |
| 48 virtual void attachDevTools() { } | 50 virtual void attachDevTools() { } |
| 49 virtual void reattachDevTools(const WebString& savedState) { } | 51 virtual void reattachDevTools(const WebString& savedState) { } |
| 50 virtual void detachDevTools() { } | 52 virtual void detachDevTools() { } |
| 51 virtual void dispatchDevToolsMessage(const WebString&) { } | 53 virtual void dispatchDevToolsMessage(const WebString&) { } |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 } // namespace blink | 56 } // namespace blink |
| 55 | 57 |
| 56 #endif // WebServiceWorkerContextProxy_h | 58 #endif // WebServiceWorkerContextProxy_h |
| OLD | NEW |