Chromium Code Reviews| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 101 | 101 |
| 102 // Called when the console message is reported. | 102 // Called when the console message is reported. |
| 103 virtual void reportConsoleMessage(int source, int level, const WebString& me ssage, int lineNumber, const WebString& sourceURL) { } | 103 virtual void reportConsoleMessage(int source, int level, const WebString& me ssage, int lineNumber, const WebString& sourceURL) { } |
| 104 | 104 |
| 105 // Inspector related messages. | 105 // Inspector related messages. |
| 106 virtual void sendDevToolsMessage(int sessionId, int callId, const WebString& message, const WebString& state) { } | 106 virtual void sendDevToolsMessage(int sessionId, int callId, const WebString& message, const WebString& state) { } |
| 107 | 107 |
| 108 // ServiceWorker specific method. | 108 // ServiceWorker specific method. |
| 109 virtual void didHandleActivateEvent(int eventID, WebServiceWorkerEventResult result) { } | 109 virtual void didHandleActivateEvent(int eventID, WebServiceWorkerEventResult result) { } |
| 110 | 110 |
| 111 // Called after ExtendableMessageEvent is handled by the ServiceWorker's | |
| 112 // script context. | |
| 113 virtual void didHandleExtendableMessageEvent(int eventID, WebServiceWorkerEv entResult result) {} | |
|
falken
2016/01/29 09:47:52
nit: The other functions are "{ }"
nhiroki
2016/02/01 02:05:28
Done.
| |
| 114 | |
| 111 // ServiceWorker specific methods. Called after FetchEvent is handled by the | 115 // ServiceWorker specific methods. Called after FetchEvent is handled by the |
| 112 // ServiceWorker's script context. When no response is provided, the browser | 116 // ServiceWorker's script context. When no response is provided, the browser |
| 113 // should fallback to native fetch. | 117 // should fallback to native fetch. |
| 114 virtual void didHandleFetchEvent(int fetchEventID) { } | 118 virtual void didHandleFetchEvent(int fetchEventID) { } |
| 115 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse& response) { } | 119 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse& response) { } |
| 116 | 120 |
| 117 // ServiceWorker specific method. Called after InstallEvent (dispatched | 121 // ServiceWorker specific method. Called after InstallEvent (dispatched |
| 118 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's | 122 // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's |
| 119 // script context. | 123 // script context. |
| 120 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent Result result) { } | 124 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent Result result) { } |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 187 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } | 191 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } |
| 188 | 192 |
| 189 // Called when the worker wants to register subscopes to handle via foreign | 193 // Called when the worker wants to register subscopes to handle via foreign |
| 190 // fetch. Will only be called while an install event is in progress. | 194 // fetch. Will only be called while an install event is in progress. |
| 191 virtual void registerForeignFetchScopes(const WebVector<WebURL>& subScopes) { BLINK_ASSERT_NOT_REACHED(); } | 195 virtual void registerForeignFetchScopes(const WebVector<WebURL>& subScopes) { BLINK_ASSERT_NOT_REACHED(); } |
| 192 }; | 196 }; |
| 193 | 197 |
| 194 } // namespace blink | 198 } // namespace blink |
| 195 | 199 |
| 196 #endif // WebServiceWorkerContextClient_h | 200 #endif // WebServiceWorkerContextClient_h |
| OLD | NEW |