OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/browser/url_fetcher_protect.h" | 5 #include "chrome/browser/net/url_fetcher_protect.h" |
6 | 6 |
7 // URLFetcherProtectEntry ---------------------------------------------------- | 7 // URLFetcherProtectEntry ---------------------------------------------------- |
8 | 8 |
9 using base::TimeDelta; | 9 using base::TimeDelta; |
10 using base::TimeTicks; | 10 using base::TimeTicks; |
11 | 11 |
12 // Default parameters. Time is in milliseconds. | 12 // Default parameters. Time is in milliseconds. |
13 // static | 13 // static |
14 const int URLFetcherProtectEntry::kDefaultSlidingWindowPeriod = 2000; | 14 const int URLFetcherProtectEntry::kDefaultSlidingWindowPeriod = 2000; |
15 | 15 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 ProtectService::iterator i = services_.find(id); | 165 ProtectService::iterator i = services_.find(id); |
166 if (i != services_.end()) { | 166 if (i != services_.end()) { |
167 // The entry exists. | 167 // The entry exists. |
168 delete i->second; | 168 delete i->second; |
169 } | 169 } |
170 | 170 |
171 services_[id] = entry; | 171 services_[id] = entry; |
172 return entry; | 172 return entry; |
173 } | 173 } |
OLD | NEW |