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

Side by Side Diff: content/browser/service_worker/service_worker_storage.h

Issue 2518523003: Limit timeout for foreign fetch events when triggered by another service worker. (Closed)
Patch Set: don't intercept worker main resource fetches Created 4 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 void NotifyUninstallingRegistration(ServiceWorkerRegistration* registration); 233 void NotifyUninstallingRegistration(ServiceWorkerRegistration* registration);
234 void NotifyDoneUninstallingRegistration( 234 void NotifyDoneUninstallingRegistration(
235 ServiceWorkerRegistration* registration); 235 ServiceWorkerRegistration* registration);
236 236
237 void Disable(); 237 void Disable();
238 238
239 // |resources| must already be on the purgeable list. 239 // |resources| must already be on the purgeable list.
240 void PurgeResources(const ResourceList& resources); 240 void PurgeResources(const ResourceList& resources);
241 241
242 private: 242 private:
243 friend class ForeignFetchRequestHandlerTest;
243 friend class ServiceWorkerDispatcherHostTest; 244 friend class ServiceWorkerDispatcherHostTest;
244 friend class ServiceWorkerHandleTest; 245 friend class ServiceWorkerHandleTest;
245 friend class ServiceWorkerStorageTest; 246 friend class ServiceWorkerStorageTest;
246 friend class ServiceWorkerStorageOriginTrialsTest; 247 friend class ServiceWorkerStorageOriginTrialsTest;
247 friend class ServiceWorkerRegistrationTest; 248 friend class ServiceWorkerRegistrationTest;
248 friend class ServiceWorkerResourceStorageTest; 249 friend class ServiceWorkerResourceStorageTest;
249 friend class ServiceWorkerControlleeRequestHandlerTest; 250 friend class ServiceWorkerControlleeRequestHandlerTest;
250 friend class ServiceWorkerContextRequestHandlerTest; 251 friend class ServiceWorkerContextRequestHandlerTest;
251 friend class ServiceWorkerReadFromCacheJobTest; 252 friend class ServiceWorkerReadFromCacheJobTest;
252 friend class ServiceWorkerRequestHandlerTest; 253 friend class ServiceWorkerRequestHandlerTest;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 std::set<int64_t> pending_deletions_; 561 std::set<int64_t> pending_deletions_;
561 562
562 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; 563 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_;
563 564
564 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); 565 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage);
565 }; 566 };
566 567
567 } // namespace content 568 } // namespace content
568 569
569 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ 570 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698