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

Side by Side Diff: Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h

Issue 868233006: [ServiceWorker] Cleanup to remove old focus() code kept to not break Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_client_focus_client
Patch Set: Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef ServiceWorkerGlobalScopeClient_h 31 #ifndef ServiceWorkerGlobalScopeClient_h
32 #define ServiceWorkerGlobalScopeClient_h 32 #define ServiceWorkerGlobalScopeClient_h
33 33
34 #include "core/dom/MessagePort.h" 34 #include "core/dom/MessagePort.h"
35 #include "core/workers/WorkerClients.h" 35 #include "core/workers/WorkerClients.h"
36 #include "public/platform/WebMessagePortChannel.h" 36 #include "public/platform/WebMessagePortChannel.h"
37 #include "public/platform/WebServiceWorkerClientFocusCallback.h"
38 #include "public/platform/WebServiceWorkerClientsClaimCallbacks.h" 37 #include "public/platform/WebServiceWorkerClientsClaimCallbacks.h"
39 #include "public/platform/WebServiceWorkerClientsInfo.h" 38 #include "public/platform/WebServiceWorkerClientsInfo.h"
40 #include "public/platform/WebServiceWorkerEventResult.h" 39 #include "public/platform/WebServiceWorkerEventResult.h"
41 #include "public/platform/WebServiceWorkerSkipWaitingCallbacks.h" 40 #include "public/platform/WebServiceWorkerSkipWaitingCallbacks.h"
42 #include "wtf/Forward.h" 41 #include "wtf/Forward.h"
43 #include "wtf/Noncopyable.h" 42 #include "wtf/Noncopyable.h"
44 43
45 namespace blink { 44 namespace blink {
46 45
47 class ExecutionContext; 46 class ExecutionContext;
(...skipping 20 matching lines...) Expand all
68 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse&) = 0; 67 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse&) = 0;
69 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent Result) = 0; 68 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent Result) = 0;
70 virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEv entResult) = 0; 69 virtual void didHandleNotificationClickEvent(int eventID, WebServiceWorkerEv entResult) = 0;
71 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult ) = 0; 70 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult ) = 0;
72 virtual void didHandleSyncEvent(int syncEventID) = 0; 71 virtual void didHandleSyncEvent(int syncEventID) = 0;
73 virtual void didHandleCrossOriginConnectEvent(int connectEventID, bool accep tConnect) = 0; 72 virtual void didHandleCrossOriginConnectEvent(int connectEventID, bool accep tConnect) = 0;
74 virtual void postMessageToClient(int clientID, const WebString& message, Pas sOwnPtr<WebMessagePortChannelArray>) = 0; 73 virtual void postMessageToClient(int clientID, const WebString& message, Pas sOwnPtr<WebMessagePortChannelArray>) = 0;
75 virtual void postMessageToCrossOriginClient(const WebCrossOriginServiceWorke rClient&, const WebString& message, PassOwnPtr<WebMessagePortChannelArray>) = 0; 74 virtual void postMessageToCrossOriginClient(const WebCrossOriginServiceWorke rClient&, const WebString& message, PassOwnPtr<WebMessagePortChannelArray>) = 0;
76 virtual void skipWaiting(WebServiceWorkerSkipWaitingCallbacks*) = 0; 75 virtual void skipWaiting(WebServiceWorkerSkipWaitingCallbacks*) = 0;
77 virtual void claim(WebServiceWorkerClientsClaimCallbacks*) = 0; 76 virtual void claim(WebServiceWorkerClientsClaimCallbacks*) = 0;
78 virtual void focus(int clientID, WebServiceWorkerClientFocusCallback*) = 0;
79 virtual void focus(int clientID, WebServiceWorkerClientCallbacks*) = 0; 77 virtual void focus(int clientID, WebServiceWorkerClientCallbacks*) = 0;
80 78
81 static const char* supplementName(); 79 static const char* supplementName();
82 static ServiceWorkerGlobalScopeClient* from(ExecutionContext*); 80 static ServiceWorkerGlobalScopeClient* from(ExecutionContext*);
83 81
84 protected: 82 protected:
85 ServiceWorkerGlobalScopeClient() { } 83 ServiceWorkerGlobalScopeClient() { }
86 }; 84 };
87 85
88 void provideServiceWorkerGlobalScopeClientToWorker(WorkerClients*, PassOwnPtrWil lBeRawPtr<ServiceWorkerGlobalScopeClient>); 86 void provideServiceWorkerGlobalScopeClientToWorker(WorkerClients*, PassOwnPtrWil lBeRawPtr<ServiceWorkerGlobalScopeClient>);
89 87
90 } // namespace blink 88 } // namespace blink
91 89
92 #endif // ServiceWorkerGlobalScopeClient_h 90 #endif // ServiceWorkerGlobalScopeClient_h
OLDNEW
« no previous file with comments | « no previous file | Source/web/ServiceWorkerGlobalScopeClientImpl.h » ('j') | public/web/WebServiceWorkerContextClient.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698