OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "net/http/http_server_properties_impl.h" | 5 #include "net/http/http_server_properties_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
19 #include "base/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "base/values.h" | 20 #include "base/values.h" |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 const uint64_t kBrokenAlternativeProtocolDelaySecs = 300; | 26 const uint64_t kBrokenAlternativeProtocolDelaySecs = 300; |
27 | 27 |
28 } // namespace | 28 } // namespace |
29 | 29 |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 base::TimeDelta delay = when > now ? when - now : base::TimeDelta(); | 808 base::TimeDelta delay = when > now ? when - now : base::TimeDelta(); |
809 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( | 809 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( |
810 FROM_HERE, | 810 FROM_HERE, |
811 base::Bind( | 811 base::Bind( |
812 &HttpServerPropertiesImpl::ExpireBrokenAlternateProtocolMappings, | 812 &HttpServerPropertiesImpl::ExpireBrokenAlternateProtocolMappings, |
813 weak_ptr_factory_.GetWeakPtr()), | 813 weak_ptr_factory_.GetWeakPtr()), |
814 delay); | 814 delay); |
815 } | 815 } |
816 | 816 |
817 } // namespace net | 817 } // namespace net |
OLD | NEW |