| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |