Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: public/web/WebServiceWorkerContextClient.h

Issue 692003002: ServiceWorker: Registering a malformed script should fail [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 success) { }
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
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
OLDNEW
« no previous file with comments | « Source/web/WebSharedWorkerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698