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

Side by Side Diff: content/browser/service_worker/service_worker_context_wrapper.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_CONTEXT_WRAPPER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 bool OriginHasForeignFetchRegistrations(const GURL& origin); 210 bool OriginHasForeignFetchRegistrations(const GURL& origin);
211 211
212 // Must be called from the UI thread. 212 // Must be called from the UI thread.
213 bool IsRunningNavigationHintTask(int render_process_id) const; 213 bool IsRunningNavigationHintTask(int render_process_id) const;
214 214
215 private: 215 private:
216 friend class BackgroundSyncManagerTest; 216 friend class BackgroundSyncManagerTest;
217 friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>; 217 friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>;
218 friend class EmbeddedWorkerTestHelper; 218 friend class EmbeddedWorkerTestHelper;
219 friend class EmbeddedWorkerBrowserTest; 219 friend class EmbeddedWorkerBrowserTest;
220 friend class ForeignFetchRequestHandler;
220 friend class ServiceWorkerDispatcherHost; 221 friend class ServiceWorkerDispatcherHost;
221 friend class ServiceWorkerInternalsUI; 222 friend class ServiceWorkerInternalsUI;
222 friend class ServiceWorkerNavigationHandleCore; 223 friend class ServiceWorkerNavigationHandleCore;
223 friend class ServiceWorkerProcessManager; 224 friend class ServiceWorkerProcessManager;
224 friend class ServiceWorkerRequestHandler; 225 friend class ServiceWorkerRequestHandler;
225 friend class ServiceWorkerVersionBrowserTest; 226 friend class ServiceWorkerVersionBrowserTest;
226 friend class MockServiceWorkerContextWrapper; 227 friend class MockServiceWorkerContextWrapper;
227 228
228 ~ServiceWorkerContextWrapper() override; 229 ~ServiceWorkerContextWrapper() override;
229 230
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 300
300 // Must be touched on the UI thread. 301 // Must be touched on the UI thread.
301 std::map<int, int> navigation_hint_task_count_per_process_; 302 std::map<int, int> navigation_hint_task_count_per_process_;
302 303
303 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); 304 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper);
304 }; 305 };
305 306
306 } // namespace content 307 } // namespace content
307 308
308 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ 309 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698