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

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

Issue 2746783002: [ServiceWorker] Mojofy InstallEvent of Service Worker (Closed)
Patch Set: Rebase and address shimazu's comment #33 Created 3 years, 8 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 virtual void SkipWaiting( 133 virtual void SkipWaiting(
134 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) = 0; 134 std::unique_ptr<WebServiceWorkerSkipWaitingCallbacks>) = 0;
135 virtual void Claim( 135 virtual void Claim(
136 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) = 0; 136 std::unique_ptr<WebServiceWorkerClientsClaimCallbacks>) = 0;
137 virtual void Focus(const WebString& client_uuid, 137 virtual void Focus(const WebString& client_uuid,
138 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; 138 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
139 virtual void Navigate(const WebString& client_uuid, 139 virtual void Navigate(const WebString& client_uuid,
140 const WebURL&, 140 const WebURL&,
141 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0; 141 std::unique_ptr<WebServiceWorkerClientCallbacks>) = 0;
142 virtual void RegisterForeignFetchScopes( 142 virtual void RegisterForeignFetchScopes(
143 const int event_id,
143 const WebVector<WebURL>& sub_scopes, 144 const WebVector<WebURL>& sub_scopes,
144 const WebVector<WebSecurityOrigin>&) = 0; 145 const WebVector<WebSecurityOrigin>&) = 0;
145 146
146 static const char* SupplementName(); 147 static const char* SupplementName();
147 static ServiceWorkerGlobalScopeClient* From(ExecutionContext*); 148 static ServiceWorkerGlobalScopeClient* From(ExecutionContext*);
148 149
149 protected: 150 protected:
150 ServiceWorkerGlobalScopeClient() {} 151 ServiceWorkerGlobalScopeClient() {}
151 }; 152 };
152 153
153 MODULES_EXPORT void ProvideServiceWorkerGlobalScopeClientToWorker( 154 MODULES_EXPORT void ProvideServiceWorkerGlobalScopeClientToWorker(
154 WorkerClients*, 155 WorkerClients*,
155 ServiceWorkerGlobalScopeClient*); 156 ServiceWorkerGlobalScopeClient*);
156 157
157 } // namespace blink 158 } // namespace blink
158 159
159 #endif // ServiceWorkerGlobalScopeClient_h 160 #endif // ServiceWorkerGlobalScopeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698