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 // A class to track the per-type scheduling data. | 5 // A class to track the per-type scheduling data. |
6 #ifndef SYNC_SESSIONS_DATA_TYPE_TRACKER_H_ | 6 #ifndef SYNC_SESSIONS_DATA_TYPE_TRACKER_H_ |
7 #define SYNC_SESSIONS_DATA_TYPE_TRACKER_H_ | 7 #define SYNC_SESSIONS_DATA_TYPE_TRACKER_H_ |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/time.h" | 13 #include "base/time/time.h" |
14 #include "sync/protocol/sync.pb.h" | 14 #include "sync/protocol/sync.pb.h" |
15 | 15 |
16 namespace syncer { | 16 namespace syncer { |
17 namespace sessions { | 17 namespace sessions { |
18 | 18 |
19 typedef std::deque<std::string> PayloadList; | 19 typedef std::deque<std::string> PayloadList; |
20 | 20 |
21 class DataTypeTracker { | 21 class DataTypeTracker { |
22 public: | 22 public: |
23 DataTypeTracker(); | 23 DataTypeTracker(); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // If !unthrottle_time_.is_null(), this type is throttled and may not download | 105 // If !unthrottle_time_.is_null(), this type is throttled and may not download |
106 // or commit data until the specified time. | 106 // or commit data until the specified time. |
107 base::TimeTicks unthrottle_time_; | 107 base::TimeTicks unthrottle_time_; |
108 }; | 108 }; |
109 | 109 |
110 } // namespace syncer | 110 } // namespace syncer |
111 } // namespace sessions | 111 } // namespace sessions |
112 | 112 |
113 #endif // SYNC_SESSIONS_DATA_TYPE_TRACKER_H_ | 113 #endif // SYNC_SESSIONS_DATA_TYPE_TRACKER_H_ |
OLD | NEW |