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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 virtual void willDestroyWorkerContext() { } | 87 virtual void willDestroyWorkerContext() { } |
88 | 88 |
89 // WorkerGlobalScope is destroyed and the worker is ready to be terminated. | 89 // WorkerGlobalScope is destroyed and the worker is ready to be terminated. |
90 virtual void workerContextDestroyed() { } | 90 virtual void workerContextDestroyed() { } |
91 | 91 |
92 // Starting worker context is failed. This could happen when loading | 92 // Starting worker context is failed. This could happen when loading |
93 // worker script fails, or is asked to terminated before the context starts. | 93 // worker script fails, or is asked to terminated before the context starts. |
94 // This is called on the main thread. | 94 // This is called on the main thread. |
95 virtual void workerContextFailedToStart() { } | 95 virtual void workerContextFailedToStart() { } |
96 | 96 |
97 // Called when the worker script is evaluated. |success| is true if the | |
98 // evaluation completed with no uncaught exception. | |
99 virtual void didEvaluateWorkerScript(bool result) { } | |
haraken
2014/11/05 04:26:49
result => success
nhiroki
2014/11/05 05:33:40
Done.
| |
100 | |
97 // Called when the WorkerGlobalScope had an error or an exception. | 101 // Called when the WorkerGlobalScope had an error or an exception. |
98 virtual void reportException(const WebString& errorMessage, int lineNumber, int columnNumber, const WebString& sourceURL) { } | 102 virtual void reportException(const WebString& errorMessage, int lineNumber, int columnNumber, const WebString& sourceURL) { } |
99 | 103 |
100 // Called when the console message is reported. | 104 // Called when the console message is reported. |
101 virtual void reportConsoleMessage(int source, int level, const WebString& me ssage, int lineNumber, const WebString& sourceURL) { } | 105 virtual void reportConsoleMessage(int source, int level, const WebString& me ssage, int lineNumber, const WebString& sourceURL) { } |
102 | 106 |
103 // Inspector related messages. | 107 // Inspector related messages. |
104 virtual void dispatchDevToolsMessage(const WebString&) { } | 108 virtual void dispatchDevToolsMessage(const WebString&) { } |
105 virtual void saveDevToolsAgentState(const WebString&) { } | 109 virtual void saveDevToolsAgentState(const WebString&) { } |
106 | 110 |
(...skipping 26 matching lines...) Expand all Loading... | |
133 virtual void getClients(WebServiceWorkerClientsCallbacks*) { BLINK_ASSERT_NO T_REACHED(); } | 137 virtual void getClients(WebServiceWorkerClientsCallbacks*) { BLINK_ASSERT_NO T_REACHED(); } |
134 | 138 |
135 // Callee receives ownership of the passed vector. | 139 // Callee receives ownership of the passed vector. |
136 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175 3 | 140 // FIXME: Blob refs should be passed to maintain ref counts. crbug.com/35175 3 |
137 virtual void postMessageToClient(int clientID, const WebString&, WebMessageP ortChannelArray*) { BLINK_ASSERT_NOT_REACHED(); } | 141 virtual void postMessageToClient(int clientID, const WebString&, WebMessageP ortChannelArray*) { BLINK_ASSERT_NOT_REACHED(); } |
138 }; | 142 }; |
139 | 143 |
140 } // namespace blink | 144 } // namespace blink |
141 | 145 |
142 #endif // WebServiceWorkerContextClient_h | 146 #endif // WebServiceWorkerContextClient_h |
OLD | NEW |