| 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 // This file implements backoff in the suggest system so that we don't | 5 // This file implements backoff in the suggest system so that we don't |
| 6 // DOS the Suggest servers when using URLFetcher. | 6 // DOS the Suggest servers when using URLFetcher. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_URL_FETCHER_PROTECT_H__ | 8 #ifndef CHROME_BROWSER_URL_FETCHER_PROTECT_H__ |
| 9 #define CHROME_BROWSER_URL_FETCHER_PROTECT_H__ | 9 #define CHROME_BROWSER_URL_FETCHER_PROTECT_H__ |
| 10 | 10 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 typedef std::map<const std::string, URLFetcherProtectEntry*> ProtectService; | 136 typedef std::map<const std::string, URLFetcherProtectEntry*> ProtectService; |
| 137 | 137 |
| 138 static Lock lock_; | 138 static Lock lock_; |
| 139 static scoped_ptr<URLFetcherProtectManager> protect_manager_; | 139 static scoped_ptr<URLFetcherProtectManager> protect_manager_; |
| 140 ProtectService services_; | 140 ProtectService services_; |
| 141 | 141 |
| 142 DISALLOW_COPY_AND_ASSIGN(URLFetcherProtectManager); | 142 DISALLOW_COPY_AND_ASSIGN(URLFetcherProtectManager); |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 #endif // CHROME_BROWSER_URL_FETCHER_PROTECT_H__ | 145 #endif // CHROME_BROWSER_URL_FETCHER_PROTECT_H__ |
| OLD | NEW |