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

Side by Side Diff: extensions/browser/extension_throttle_entry.cc

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 2 months 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 (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 "extensions/browser/extension_throttle_entry.h" 5 #include "extensions/browser/extension_throttle_entry.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ExtensionThrottleManager* manager, 71 ExtensionThrottleManager* manager,
72 const std::string& url_id, 72 const std::string& url_id,
73 bool ignore_user_gesture_load_flag_for_tests) 73 bool ignore_user_gesture_load_flag_for_tests)
74 : sliding_window_period_( 74 : sliding_window_period_(
75 base::TimeDelta::FromMilliseconds(kDefaultSlidingWindowPeriodMs)), 75 base::TimeDelta::FromMilliseconds(kDefaultSlidingWindowPeriodMs)),
76 max_send_threshold_(kDefaultMaxSendThreshold), 76 max_send_threshold_(kDefaultMaxSendThreshold),
77 is_backoff_disabled_(false), 77 is_backoff_disabled_(false),
78 backoff_entry_(&backoff_policy_), 78 backoff_entry_(&backoff_policy_),
79 manager_(manager), 79 manager_(manager),
80 url_id_(url_id), 80 url_id_(url_id),
81 net_log_(net::BoundNetLog::Make( 81 net_log_(net::NetLogWithSource::Make(
82 manager->net_log(), 82 manager->net_log(),
83 net::NetLogSourceType::EXPONENTIAL_BACKOFF_THROTTLING)), 83 net::NetLogSourceType::EXPONENTIAL_BACKOFF_THROTTLING)),
84 ignore_user_gesture_load_flag_for_tests_( 84 ignore_user_gesture_load_flag_for_tests_(
85 ignore_user_gesture_load_flag_for_tests) { 85 ignore_user_gesture_load_flag_for_tests) {
86 DCHECK(manager_); 86 DCHECK(manager_);
87 Initialize(); 87 Initialize();
88 } 88 }
89 89
90 ExtensionThrottleEntry::ExtensionThrottleEntry( 90 ExtensionThrottleEntry::ExtensionThrottleEntry(
91 ExtensionThrottleManager* manager, 91 ExtensionThrottleManager* manager,
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 net::BackoffEntry* ExtensionThrottleEntry::GetBackoffEntry() { 280 net::BackoffEntry* ExtensionThrottleEntry::GetBackoffEntry() {
281 return &backoff_entry_; 281 return &backoff_entry_;
282 } 282 }
283 283
284 // static 284 // static
285 bool ExtensionThrottleEntry::ExplicitUserRequest(const int load_flags) { 285 bool ExtensionThrottleEntry::ExplicitUserRequest(const int load_flags) {
286 return (load_flags & net::LOAD_MAYBE_USER_GESTURE) != 0; 286 return (load_flags & net::LOAD_MAYBE_USER_GESTURE) != 0;
287 } 287 }
288 288
289 } // namespace extensions 289 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698