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

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

Issue 1437283003: [DevTools] filter any messages from previous session in DevToolsAgentHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « third_party/WebKit/public/web/WebSharedWorkerClient.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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Called when the worker context is initialized. 96 // Called when the worker context is initialized.
97 virtual void didInitializeWorkerContext(v8::Local<v8::Context> context, cons t blink::WebURL& url) { } 97 virtual void didInitializeWorkerContext(v8::Local<v8::Context> context, cons t blink::WebURL& url) { }
98 98
99 // Called when the WorkerGlobalScope had an error or an exception. 99 // Called when the WorkerGlobalScope had an error or an exception.
100 virtual void reportException(const WebString& errorMessage, int lineNumber, int columnNumber, const WebString& sourceURL) { } 100 virtual void reportException(const WebString& errorMessage, int lineNumber, int columnNumber, const WebString& sourceURL) { }
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 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 // ServiceWorker specific methods. Called after FetchEvent is handled by the 111 // ServiceWorker specific methods. Called after FetchEvent is handled by the
112 // ServiceWorker's script context. When no response is provided, the browser 112 // ServiceWorker's script context. When no response is provided, the browser
113 // should fallback to native fetch. 113 // should fallback to native fetch.
114 virtual void didHandleFetchEvent(int fetchEventID) { } 114 virtual void didHandleFetchEvent(int fetchEventID) { }
115 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse& response) { } 115 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse& response) { }
116 116
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } 187 virtual void navigate(const WebString& uuid, const WebURL&, WebServiceWorker ClientCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
188 188
189 // Called when the worker wants to register subscopes to handle via foreign 189 // 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. 190 // fetch. Will only be called while an install event is in progress.
191 virtual void registerForeignFetchScopes(const WebVector<WebURL>& subScopes) { BLINK_ASSERT_NOT_REACHED(); } 191 virtual void registerForeignFetchScopes(const WebVector<WebURL>& subScopes) { BLINK_ASSERT_NOT_REACHED(); }
192 }; 192 };
193 193
194 } // namespace blink 194 } // namespace blink
195 195
196 #endif // WebServiceWorkerContextClient_h 196 #endif // WebServiceWorkerContextClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebSharedWorkerClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698