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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 1117923004: Run load state update timer only when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cpu
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_dispatcher_host_impl.h
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h
index 87181a3854c6c3a4cf0af0def319239e3e8a6c22..e6e2dd1f75e94ef5c82553788d438592d1a706b7 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -494,6 +494,8 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
int child_id,
bool is_sync_load);
+ void ScheduleUpdateLoadInfo();
+
LoaderMap pending_loaders_;
// Collection of temp files downloaded for child processes via
@@ -507,7 +509,7 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// A timer that periodically calls UpdateLoadStates while pending_requests_
// is not empty.
- scoped_ptr<base::RepeatingTimer<ResourceDispatcherHostImpl> >
+ scoped_ptr<base::OneShotTimer<ResourceDispatcherHostImpl> >
update_load_states_timer_;
// We own the save file manager.
« no previous file with comments | « no previous file | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | content/browser/loader/resource_scheduler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698