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/url_request/url_request_throttler_entry.h" | 5 #include "net/url_request/url_request_throttler_entry.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/rand_util.h" | 12 #include "base/rand_util.h" |
13 #include "base/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "net/base/load_flags.h" | 15 #include "net/base/load_flags.h" |
16 #include "net/base/net_log.h" | 16 #include "net/base/net_log.h" |
17 #include "net/url_request/url_request.h" | 17 #include "net/url_request/url_request.h" |
18 #include "net/url_request/url_request_context.h" | 18 #include "net/url_request/url_request_context.h" |
19 #include "net/url_request/url_request_throttler_header_interface.h" | 19 #include "net/url_request/url_request_throttler_header_interface.h" |
20 #include "net/url_request/url_request_throttler_manager.h" | 20 #include "net/url_request/url_request_throttler_manager.h" |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 | 23 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 BackoffEntry* URLRequestThrottlerEntry::GetBackoffEntry() { | 312 BackoffEntry* URLRequestThrottlerEntry::GetBackoffEntry() { |
313 return &backoff_entry_; | 313 return &backoff_entry_; |
314 } | 314 } |
315 | 315 |
316 // static | 316 // static |
317 bool URLRequestThrottlerEntry::ExplicitUserRequest(const int load_flags) { | 317 bool URLRequestThrottlerEntry::ExplicitUserRequest(const int load_flags) { |
318 return (load_flags & LOAD_MAYBE_USER_GESTURE) != 0; | 318 return (load_flags & LOAD_MAYBE_USER_GESTURE) != 0; |
319 } | 319 } |
320 | 320 |
321 } // namespace net | 321 } // namespace net |
OLD | NEW |