Home
last modified time | relevance | path

Searched refs:reserved_slots (Results 1 – 5 of 5) sorted by relevance

/external/chromium_org/net/base/
Dprioritized_dispatcher.cc13 : total_jobs(total_jobs), reserved_slots(num_priorities) {} in Limits()
18 : queue_(limits.reserved_slots.size()), in PrioritizedDispatcher()
19 max_running_jobs_(limits.reserved_slots.size()), in PrioritizedDispatcher()
93 limits.reserved_slots[i] = max_running_jobs_[i] - max_running_jobs_[i - 1]; in GetLimits()
100 DCHECK_EQ(queue_.num_priorities(), limits.reserved_slots.size()); in SetLimits()
102 for (size_t i = 0; i < limits.reserved_slots.size(); ++i) { in SetLimits()
103 total += limits.reserved_slots[i]; in SetLimits()
109 for (size_t i = limits.reserved_slots.size(); i > 0; --i) { in SetLimits()
Dprioritized_dispatcher_unittest.cc173 original_limits.reserved_slots[HIGHEST] = 1; in TEST_F()
174 original_limits.reserved_slots[LOW] = 2; in TEST_F()
180 ASSERT_EQ(NUM_PRIORITIES, retrieved_limits.reserved_slots.size()); in TEST_F()
183 EXPECT_EQ(original_limits.reserved_slots[priority], in TEST_F()
184 retrieved_limits.reserved_slots[priority]); in TEST_F()
189 new_limits.reserved_slots[MEDIUM] = 3; in TEST_F()
190 new_limits.reserved_slots[LOWEST] = 1; in TEST_F()
196 ASSERT_EQ(NUM_PRIORITIES, retrieved_limits.reserved_slots.size()); in TEST_F()
199 EXPECT_EQ(new_limits.reserved_slots[priority], in TEST_F()
200 retrieved_limits.reserved_slots[priority]); in TEST_F()
[all …]
Dprioritized_dispatcher.h46 std::vector<size_t> reserved_slots; member
/external/chromium_org/net/dns/
Dhost_resolver.cc82 limits.reserved_slots = parsed; in GetDispatcherLimits()
Dhost_resolver_impl.cc2215 PrioritizedDispatcher::Limits(limits.reserved_slots.size(), 0)); in AbortAllInProgressJobs()
2236 PrioritizedDispatcher::Limits(limits.reserved_slots.size(), 0)); in AbortDnsTasks()