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

Side by Side Diff: chrome/browser/safe_browsing/protocol_manager.cc

Issue 107001: Move scoped_vector.h and stl_util-inl.h to base/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | Annotate | Revision Log
OLDNEW
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/file_version_info.h" 7 #include "base/file_version_info.h"
8 #include "base/histogram.h" 8 #include "base/histogram.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/rand_util.h" 11 #include "base/rand_util.h"
12 #include "base/stl_util-inl.h"
12 #include "base/string_util.h" 13 #include "base/string_util.h"
13 #include "base/sys_info.h" 14 #include "base/sys_info.h"
14 #include "base/task.h" 15 #include "base/task.h"
15 #include "base/timer.h" 16 #include "base/timer.h"
16 #include "chrome/browser/profile.h" 17 #include "chrome/browser/profile.h"
17 #include "chrome/browser/safe_browsing/protocol_parser.h" 18 #include "chrome/browser/safe_browsing/protocol_parser.h"
18 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 19 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
19 #include "chrome/common/env_vars.h" 20 #include "chrome/common/env_vars.h"
20 #include "chrome/common/stl_util-inl.h"
21 #include "net/base/base64.h" 21 #include "net/base/base64.h"
22 #include "net/base/escape.h" 22 #include "net/base/escape.h"
23 #include "net/base/load_flags.h" 23 #include "net/base/load_flags.h"
24 24
25 using base::Time; 25 using base::Time;
26 using base::TimeDelta; 26 using base::TimeDelta;
27 27
28 // Maximum time, in seconds, from start up before we must issue an update query. 28 // Maximum time, in seconds, from start up before we must issue an update query.
29 static const int kSbTimerStartIntervalSec = 5 * 60; 29 static const int kSbTimerStartIntervalSec = 5 * 60;
30 30
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 void SafeBrowsingProtocolManager::HandleGetHashError() { 629 void SafeBrowsingProtocolManager::HandleGetHashError() {
630 int next = GetNextBackOffTime(&gethash_error_count_, &gethash_back_off_mult_); 630 int next = GetNextBackOffTime(&gethash_error_count_, &gethash_back_off_mult_);
631 next_gethash_time_ = Time::Now() + TimeDelta::FromSeconds(next); 631 next_gethash_time_ = Time::Now() + TimeDelta::FromSeconds(next);
632 } 632 }
633 633
634 void SafeBrowsingProtocolManager::UpdateFinished(bool success) { 634 void SafeBrowsingProtocolManager::UpdateFinished(bool success) {
635 UMA_HISTOGRAM_COUNTS("SB2.UpdateSize", update_size_); 635 UMA_HISTOGRAM_COUNTS("SB2.UpdateSize", update_size_);
636 update_size_ = 0; 636 update_size_ = 0;
637 sb_service_->UpdateFinished(success); 637 sb_service_->UpdateFinished(success);
638 } 638 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host.cc ('k') | chrome/browser/search_engines/template_url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698