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

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

Issue 2416843002: Implement FetchEvent.navigationPreload (Closed)
Patch Set: 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const WebSecurityOrigin& sourceOrigin, 60 const WebSecurityOrigin& sourceOrigin,
61 const WebMessagePortChannelArray&, 61 const WebMessagePortChannelArray&,
62 const WebServiceWorkerClientInfo&) = 0; 62 const WebServiceWorkerClientInfo&) = 0;
63 virtual void dispatchExtendableMessageEvent( 63 virtual void dispatchExtendableMessageEvent(
64 int eventID, 64 int eventID,
65 const WebString& message, 65 const WebString& message,
66 const WebSecurityOrigin& sourceOrigin, 66 const WebSecurityOrigin& sourceOrigin,
67 const WebMessagePortChannelArray&, 67 const WebMessagePortChannelArray&,
68 std::unique_ptr<WebServiceWorker::Handle>) = 0; 68 std::unique_ptr<WebServiceWorker::Handle>) = 0;
69 virtual void dispatchInstallEvent(int eventID) = 0; 69 virtual void dispatchInstallEvent(int eventID) = 0;
70 virtual void dispatchFetchEvent( 70 virtual void dispatchFetchEvent(int fetchEventID,
71 int fetchEventID, 71 const WebServiceWorkerRequest& webRequest,
72 const WebServiceWorkerRequest& webRequest) = 0; 72 bool navigationPreloadSent) = 0;
73 virtual void dispatchForeignFetchEvent( 73 virtual void dispatchForeignFetchEvent(
74 int fetchEventID, 74 int fetchEventID,
75 const WebServiceWorkerRequest& webRequest) = 0; 75 const WebServiceWorkerRequest& webRequest) = 0;
76 virtual void dispatchNotificationClickEvent(int eventID, 76 virtual void dispatchNotificationClickEvent(int eventID,
77 const WebString& notificationID, 77 const WebString& notificationID,
78 const WebNotificationData&, 78 const WebNotificationData&,
79 int actionIndex, 79 int actionIndex,
80 const WebString& reply) = 0; 80 const WebString& reply) = 0;
81 virtual void dispatchNotificationCloseEvent(int eventID, 81 virtual void dispatchNotificationCloseEvent(int eventID,
82 const WebString& notificationID, 82 const WebString& notificationID,
83 const WebNotificationData&) = 0; 83 const WebNotificationData&) = 0;
84 virtual void dispatchPushEvent(int eventID, const WebString& data) = 0; 84 virtual void dispatchPushEvent(int eventID, const WebString& data) = 0;
85 85
86 virtual bool hasFetchEventHandler() = 0; 86 virtual bool hasFetchEventHandler() = 0;
87 87
88 enum LastChanceOption { IsNotLastChance, IsLastChance }; 88 enum LastChanceOption { IsNotLastChance, IsLastChance };
89 89
90 // Once the ServiceWorker has finished handling the sync event, 90 // Once the ServiceWorker has finished handling the sync event,
91 // didHandleSyncEvent is called on the context client. 91 // didHandleSyncEvent is called on the context client.
92 virtual void dispatchSyncEvent(int syncEventID, 92 virtual void dispatchSyncEvent(int syncEventID,
93 const WebString& tag, 93 const WebString& tag,
94 LastChanceOption) = 0; 94 LastChanceOption) = 0;
95 }; 95 };
96 96
97 } // namespace blink 97 } // namespace blink
98 98
99 #endif // WebServiceWorkerContextProxy_h 99 #endif // WebServiceWorkerContextProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698