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_VERSION_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 // service worker, as the effective security of these responses is equivalent | 295 // service worker, as the effective security of these responses is equivalent |
296 // to that of the ServiceWorker. | 296 // to that of the ServiceWorker. |
297 void SetMainScriptHttpResponseInfo(const net::HttpResponseInfo& http_info); | 297 void SetMainScriptHttpResponseInfo(const net::HttpResponseInfo& http_info); |
298 const net::HttpResponseInfo* GetMainScriptHttpResponseInfo(); | 298 const net::HttpResponseInfo* GetMainScriptHttpResponseInfo(); |
299 | 299 |
300 private: | 300 private: |
301 friend class base::RefCounted<ServiceWorkerVersion>; | 301 friend class base::RefCounted<ServiceWorkerVersion>; |
302 friend class ServiceWorkerURLRequestJobTest; | 302 friend class ServiceWorkerURLRequestJobTest; |
303 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, | 303 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, |
304 ActivateWaitingVersion); | 304 ActivateWaitingVersion); |
305 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ScheduleStopWorker); | 305 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, IdleTimeout); |
306 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, KeepAlive); | 306 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, KeepAlive); |
307 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ListenerAvailability); | 307 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, ListenerAvailability); |
308 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, SetDevToolsAttached); | 308 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionTest, SetDevToolsAttached); |
309 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWaitForeverInFetchTest, RequestTimeout); | 309 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWaitForeverInFetchTest, RequestTimeout); |
310 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerFailToStartTest, Timeout); | 310 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerFailToStartTest, Timeout); |
311 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionBrowserTest, | 311 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionBrowserTest, |
312 TimeoutStartingWorker); | 312 TimeoutStartingWorker); |
313 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionBrowserTest, | 313 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerVersionBrowserTest, |
314 TimeoutWorkerInEvent); | 314 TimeoutWorkerInEvent); |
315 friend class ServiceWorkerVersionBrowserTest; | 315 friend class ServiceWorkerVersionBrowserTest; |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; | 515 scoped_ptr<net::HttpResponseInfo> main_script_http_info_; |
516 | 516 |
517 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; | 517 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |
518 | 518 |
519 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); | 519 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); |
520 }; | 520 }; |
521 | 521 |
522 } // namespace content | 522 } // namespace content |
523 | 523 |
524 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ | 524 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ |
OLD | NEW |