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

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

Issue 1038763005: Service Worker: Reset "idle" timer upon completion of an event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reliably test timer being reset Created 5 years, 9 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_version.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698