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

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

Issue 2392343002: Plumbing in notification replies: PlatformNotificationService -> SW (Closed)
Patch Set: include base/logging.h for NOTIMPLEMENTED Created 4 years, 2 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) 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 int responseID, 71 int responseID,
72 int eventFinishID, 72 int eventFinishID,
73 const WebServiceWorkerRequest& webRequest) = 0; 73 const WebServiceWorkerRequest& webRequest) = 0;
74 virtual void dispatchForeignFetchEvent( 74 virtual void dispatchForeignFetchEvent(
75 int responseID, 75 int responseID,
76 int eventFinishID, 76 int eventFinishID,
77 const WebServiceWorkerRequest& webRequest) = 0; 77 const WebServiceWorkerRequest& webRequest) = 0;
78 virtual void dispatchNotificationClickEvent(int eventID, 78 virtual void dispatchNotificationClickEvent(int eventID,
79 const WebString& notificationID, 79 const WebString& notificationID,
80 const WebNotificationData&, 80 const WebNotificationData&,
81 int actionIndex) = 0; 81 int actionIndex,
82 const WebString& reply) = 0;
82 virtual void dispatchNotificationCloseEvent(int eventID, 83 virtual void dispatchNotificationCloseEvent(int eventID,
83 const WebString& notificationID, 84 const WebString& notificationID,
84 const WebNotificationData&) = 0; 85 const WebNotificationData&) = 0;
85 virtual void dispatchPushEvent(int eventID, const WebString& data) = 0; 86 virtual void dispatchPushEvent(int eventID, const WebString& data) = 0;
86 87
87 virtual bool hasFetchEventHandler() = 0; 88 virtual bool hasFetchEventHandler() = 0;
88 89
89 enum LastChanceOption { IsNotLastChance, IsLastChance }; 90 enum LastChanceOption { IsNotLastChance, IsLastChance };
90 91
91 // Once the ServiceWorker has finished handling the sync event, 92 // Once the ServiceWorker has finished handling the sync event,
92 // didHandleSyncEvent is called on the context client. 93 // didHandleSyncEvent is called on the context client.
93 virtual void dispatchSyncEvent(int syncEventID, 94 virtual void dispatchSyncEvent(int syncEventID,
94 const WebString& tag, 95 const WebString& tag,
95 LastChanceOption) = 0; 96 LastChanceOption) = 0;
96 }; 97 };
97 98
98 } // namespace blink 99 } // namespace blink
99 100
100 #endif // WebServiceWorkerContextProxy_h 101 #endif // WebServiceWorkerContextProxy_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | ui/message_center/notification_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698