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

Side by Side Diff: content/renderer/service_worker/service_worker_context_client.h

Issue 1656933003: Add origins argument to registerForeignFetchScopes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 blink::WebMessagePortChannelArray* channels) override; 158 blink::WebMessagePortChannelArray* channels) override;
159 void focus(const blink::WebString& uuid, 159 void focus(const blink::WebString& uuid,
160 blink::WebServiceWorkerClientCallbacks*) override; 160 blink::WebServiceWorkerClientCallbacks*) override;
161 void navigate(const blink::WebString& uuid, 161 void navigate(const blink::WebString& uuid,
162 const blink::WebURL&, 162 const blink::WebURL&,
163 blink::WebServiceWorkerClientCallbacks*) override; 163 blink::WebServiceWorkerClientCallbacks*) override;
164 void skipWaiting( 164 void skipWaiting(
165 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override; 165 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override;
166 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override; 166 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override;
167 void registerForeignFetchScopes( 167 void registerForeignFetchScopes(
168 const blink::WebVector<blink::WebURL>& sub_scopes) override; 168 const blink::WebVector<blink::WebURL>& sub_scopes,
169 const blink::WebVector<blink::WebURL>& origins) override;
169 170
170 virtual void DispatchSyncEvent( 171 virtual void DispatchSyncEvent(
171 const blink::WebSyncRegistration& registration, 172 const blink::WebSyncRegistration& registration,
172 blink::WebServiceWorkerContextProxy::LastChanceOption last_chance, 173 blink::WebServiceWorkerContextProxy::LastChanceOption last_chance,
173 const SyncCallback& callback); 174 const SyncCallback& callback);
174 175
175 private: 176 private:
176 struct WorkerContextData; 177 struct WorkerContextData;
177 178
178 // Get routing_id for sending message to the ServiceWorkerVersion 179 // Get routing_id for sending message to the ServiceWorkerVersion
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // Initialized on the worker thread in workerContextStarted and 244 // Initialized on the worker thread in workerContextStarted and
244 // destructed on the worker thread in willDestroyWorkerContext. 245 // destructed on the worker thread in willDestroyWorkerContext.
245 scoped_ptr<WorkerContextData> context_; 246 scoped_ptr<WorkerContextData> context_;
246 247
247 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 248 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
248 }; 249 };
249 250
250 } // namespace content 251 } // namespace content
251 252
252 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 253 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698