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

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

Issue 2746783002: [ServiceWorker] Mojofy InstallEvent of Service Worker (Closed)
Patch Set: Fix the test failure Created 3 years, 7 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 virtual void SkipWaiting( 138 virtual void SkipWaiting(
139 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) = 0; 139 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) = 0;
140 virtual void Claim( 140 virtual void Claim(
141 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) = 0; 141 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) = 0;
142 virtual void Focus(const WebString& client_uuid, 142 virtual void Focus(const WebString& client_uuid,
143 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; 143 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
144 virtual void Navigate(const WebString& client_uuid, 144 virtual void Navigate(const WebString& client_uuid,
145 const WebURL&, 145 const WebURL&,
146 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; 146 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
147 virtual void RegisterForeignFetchScopes( 147 virtual void RegisterForeignFetchScopes(
148 int event_id,
horo 2017/04/27 09:22:21 nit: install_event_id
xiaofengzhang 2017/04/28 07:14:24 Done.
148 const WebVector<WebURL>& sub_scopes, 149 const WebVector<WebURL>& sub_scopes,
149 const WebVector<WebSecurityOrigin>&) = 0; 150 const WebVector<WebSecurityOrigin>&) = 0;
150 151
151 static const char* SupplementName(); 152 static const char* SupplementName();
152 static ServiceWorkerGlobalScopeClient* From(ExecutionContext*); 153 static ServiceWorkerGlobalScopeClient* From(ExecutionContext*);
153 154
154 protected: 155 protected:
155 ServiceWorkerGlobalScopeClient() {} 156 ServiceWorkerGlobalScopeClient() {}
156 }; 157 };
157 158
158 MODULES_EXPORT void ProvideServiceWorkerGlobalScopeClientToWorker( 159 MODULES_EXPORT void ProvideServiceWorkerGlobalScopeClientToWorker(
159 WorkerClients*, 160 WorkerClients*,
160 ServiceWorkerGlobalScopeClient*); 161 ServiceWorkerGlobalScopeClient*);
161 162
162 } // namespace blink 163 } // namespace blink
163 164
164 #endif // ServiceWorkerGlobalScopeClient_h 165 #endif // ServiceWorkerGlobalScopeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698