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

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

Issue 1287903002: Revert of [Extension ServiceWorkers] Blink: Passing v8::context to extensions dispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months 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/ServiceWorkerGlobalScopeProxy.cpp ('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 19 matching lines...) Expand all
30 30
31 #ifndef WebServiceWorkerContextClient_h 31 #ifndef WebServiceWorkerContextClient_h
32 #define WebServiceWorkerContextClient_h 32 #define WebServiceWorkerContextClient_h
33 33
34 #include "public/platform/WebMessagePortChannel.h" 34 #include "public/platform/WebMessagePortChannel.h"
35 #include "public/platform/WebServiceWorkerClientsClaimCallbacks.h" 35 #include "public/platform/WebServiceWorkerClientsClaimCallbacks.h"
36 #include "public/platform/WebServiceWorkerClientsInfo.h" 36 #include "public/platform/WebServiceWorkerClientsInfo.h"
37 #include "public/platform/WebServiceWorkerEventResult.h" 37 #include "public/platform/WebServiceWorkerEventResult.h"
38 #include "public/platform/WebServiceWorkerSkipWaitingCallbacks.h" 38 #include "public/platform/WebServiceWorkerSkipWaitingCallbacks.h"
39 #include "public/platform/WebURL.h" 39 #include "public/platform/WebURL.h"
40 #include <v8.h>
41 40
42 namespace blink { 41 namespace blink {
43 42
44 struct WebCrossOriginServiceWorkerClient; 43 struct WebCrossOriginServiceWorkerClient;
45 struct WebServiceWorkerClientQueryOptions; 44 struct WebServiceWorkerClientQueryOptions;
46 class WebDataSource; 45 class WebDataSource;
47 class WebServiceWorkerContextProxy; 46 class WebServiceWorkerContextProxy;
48 class WebServiceWorkerNetworkProvider; 47 class WebServiceWorkerNetworkProvider;
49 class WebServiceWorkerProvider; 48 class WebServiceWorkerProvider;
50 class WebServiceWorkerResponse; 49 class WebServiceWorkerResponse;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 85
87 // Starting worker context is failed. This could happen when loading 86 // Starting worker context is failed. This could happen when loading
88 // worker script fails, or is asked to terminated before the context starts. 87 // worker script fails, or is asked to terminated before the context starts.
89 // This is called on the main thread. 88 // This is called on the main thread.
90 virtual void workerContextFailedToStart() { } 89 virtual void workerContextFailedToStart() { }
91 90
92 // Called when the worker script is evaluated. |success| is true if the 91 // Called when the worker script is evaluated. |success| is true if the
93 // evaluation completed with no uncaught exception. 92 // evaluation completed with no uncaught exception.
94 virtual void didEvaluateWorkerScript(bool success) { } 93 virtual void didEvaluateWorkerScript(bool success) { }
95 94
96 // Called when the worker context is initialized.
97 virtual void didInitializeWorkerContext(v8::Local<v8::Context> context, cons t blink::WebURL& url) { }
98
99 // Called when the WorkerGlobalScope had an error or an exception. 95 // Called when the WorkerGlobalScope had an error or an exception.
100 virtual void reportException(const WebString& errorMessage, int lineNumber, int columnNumber, const WebString& sourceURL) { } 96 virtual void reportException(const WebString& errorMessage, int lineNumber, int columnNumber, const WebString& sourceURL) { }
101 97
102 // Called when the console message is reported. 98 // Called when the console message is reported.
103 virtual void reportConsoleMessage(int source, int level, const WebString& me ssage, int lineNumber, const WebString& sourceURL) { } 99 virtual void reportConsoleMessage(int source, int level, const WebString& me ssage, int lineNumber, const WebString& sourceURL) { }
104 100
105 // Inspector related messages. 101 // Inspector related messages.
106 virtual void sendDevToolsMessage(int callId, const WebString& message, const WebString& state) { } 102 virtual void sendDevToolsMessage(int callId, const WebString& message, const WebString& state) { }
107 103
108 // ServiceWorker specific method. 104 // ServiceWorker specific method.
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // Ownership of the passed callbacks is transferred to the callee, callee 179 // Ownership of the passed callbacks is transferred to the callee, callee
184 // should delete the callbacks after calling either onSuccess or onError. 180 // should delete the callbacks after calling either onSuccess or onError.
185 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are 181 // WebServiceWorkerClientInfo and WebServiceWorkerError ownerships are
186 // passed to the WebServiceWorkerClientsCallbacks implementation. 182 // passed to the WebServiceWorkerClientsCallbacks implementation.
187 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } 183 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
188 }; 184 };
189 185
190 } // namespace blink 186 } // namespace blink
191 187
192 #endif // WebServiceWorkerContextClient_h 188 #endif // WebServiceWorkerContextClient_h
OLDNEW
« no previous file with comments | « Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698