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

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

Issue 709103002: Allow Blink to respond asynchronously to SW Push events (side 2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/web/ServiceWorkerGlobalScopeClientImpl.h » ('j') | 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) 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void getClients(WebServiceWorkerClientsCallbacks*) = 0; 56 virtual void getClients(WebServiceWorkerClientsCallbacks*) = 0;
57 virtual WebURL scope() const = 0; 57 virtual WebURL scope() const = 0;
58 virtual WebServiceWorkerCacheStorage* cacheStorage() const = 0; 58 virtual WebServiceWorkerCacheStorage* cacheStorage() const = 0;
59 59
60 virtual void didHandleActivateEvent(int eventID, WebServiceWorkerEventResult ) = 0; 60 virtual void didHandleActivateEvent(int eventID, WebServiceWorkerEventResult ) = 0;
61 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent Result) = 0; 61 virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEvent Result) = 0;
62 // Calling didHandleFetchEvent without response means no response was 62 // Calling didHandleFetchEvent without response means no response was
63 // provided by the service worker in the fetch events, so fallback to native . 63 // provided by the service worker in the fetch events, so fallback to native .
64 virtual void didHandleFetchEvent(int fetchEventID) = 0; 64 virtual void didHandleFetchEvent(int fetchEventID) = 0;
65 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse&) = 0; 65 virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerRes ponse&) = 0;
66 virtual void didHandlePushEvent(int pushEventID, WebServiceWorkerEventResult ) = 0;
66 virtual void didHandleSyncEvent(int syncEventID) = 0; 67 virtual void didHandleSyncEvent(int syncEventID) = 0;
67 virtual void postMessageToClient(int clientID, const WebString& message, Pas sOwnPtr<WebMessagePortChannelArray>) = 0; 68 virtual void postMessageToClient(int clientID, const WebString& message, Pas sOwnPtr<WebMessagePortChannelArray>) = 0;
68 69
69 static const char* supplementName(); 70 static const char* supplementName();
70 static ServiceWorkerGlobalScopeClient* from(ExecutionContext*); 71 static ServiceWorkerGlobalScopeClient* from(ExecutionContext*);
71 72
72 protected: 73 protected:
73 ServiceWorkerGlobalScopeClient() { } 74 ServiceWorkerGlobalScopeClient() { }
74 }; 75 };
75 76
76 void provideServiceWorkerGlobalScopeClientToWorker(WorkerClients*, PassOwnPtrWil lBeRawPtr<ServiceWorkerGlobalScopeClient>); 77 void provideServiceWorkerGlobalScopeClientToWorker(WorkerClients*, PassOwnPtrWil lBeRawPtr<ServiceWorkerGlobalScopeClient>);
77 78
78 } // namespace blink 79 } // namespace blink
79 80
80 #endif // ServiceWorkerGlobalScopeClient_h 81 #endif // ServiceWorkerGlobalScopeClient_h
OLDNEW
« no previous file with comments | « no previous file | Source/web/ServiceWorkerGlobalScopeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698