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

Side by Side Diff: components/domain_reliability/dispatcher.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_DOMAIN_RELIABILITY_DISPATCHER_H_ 5 #ifndef COMPONENTS_DOMAIN_RELIABILITY_DISPATCHER_H_
6 #define COMPONENTS_DOMAIN_RELIABILITY_DISPATCHER_H_ 6 #define COMPONENTS_DOMAIN_RELIABILITY_DISPATCHER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 10
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "components/domain_reliability/domain_reliability_export.h" 14 #include "components/domain_reliability/domain_reliability_export.h"
15 15
16 namespace tracked_objects {
17 class Location;
18 } // namespace tracked_objects
19
20 namespace domain_reliability { 16 namespace domain_reliability {
21 17
22 class MockableTime; 18 class MockableTime;
23 19
24 // Runs tasks during a specified interval. Calling |RunEligibleTasks| gives any 20 // Runs tasks during a specified interval. Calling |RunEligibleTasks| gives any
25 // task a chance to run early (if the minimum delay has already passed); tasks 21 // task a chance to run early (if the minimum delay has already passed); tasks
26 // that aren't run early will be run once their maximum delay has passed. 22 // that aren't run early will be run once their maximum delay has passed.
27 // 23 //
28 // (See scheduler.h for an explanation of how the intervals are chosen.) 24 // (See scheduler.h for an explanation of how the intervals are chosen.)
29 class DOMAIN_RELIABILITY_EXPORT DomainReliabilityDispatcher { 25 class DOMAIN_RELIABILITY_EXPORT DomainReliabilityDispatcher {
(...skipping 28 matching lines...) Expand all
58 MockableTime* time_; 54 MockableTime* time_;
59 std::set<std::unique_ptr<Task>> tasks_; 55 std::set<std::unique_ptr<Task>> tasks_;
60 std::set<Task*> eligible_tasks_; 56 std::set<Task*> eligible_tasks_;
61 57
62 DISALLOW_COPY_AND_ASSIGN(DomainReliabilityDispatcher); 58 DISALLOW_COPY_AND_ASSIGN(DomainReliabilityDispatcher);
63 }; 59 };
64 60
65 } // namespace domain_reliability 61 } // namespace domain_reliability
66 62
67 #endif 63 #endif
OLDNEW
« no previous file with comments | « components/dom_distiller/ios/distiller_page_ios.h ('k') | components/domain_reliability/monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698