| 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/safe_browsing/protocol_manager.h" | 5 #include "chrome/browser/safe_browsing/protocol_manager.h" |
| 6 | 6 |
| 7 #include "base/histogram.h" | 7 #include "base/histogram.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 void SafeBrowsingProtocolManager::HandleReKey() { | 554 void SafeBrowsingProtocolManager::HandleReKey() { |
| 555 client_key_.clear(); | 555 client_key_.clear(); |
| 556 wrapped_key_.clear(); | 556 wrapped_key_.clear(); |
| 557 IssueKeyRequest(); | 557 IssueKeyRequest(); |
| 558 } | 558 } |
| 559 | 559 |
| 560 void SafeBrowsingProtocolManager::HandleGetHashError() { | 560 void SafeBrowsingProtocolManager::HandleGetHashError() { |
| 561 int next = GetNextBackOffTime(&gethash_error_count_, &gethash_back_off_mult_); | 561 int next = GetNextBackOffTime(&gethash_error_count_, &gethash_back_off_mult_); |
| 562 next_gethash_time_ = Time::Now() + TimeDelta::FromSeconds(next); | 562 next_gethash_time_ = Time::Now() + TimeDelta::FromSeconds(next); |
| 563 } | 563 } |
| 564 | |
| OLD | NEW |