| OLD | NEW | 
|     1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |     1 // Copyright (c) 2011 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 "content/browser/download/download_manager_impl.h" |     5 #include "content/browser/download/download_manager_impl.h" | 
|     6  |     6  | 
|     7 #include <iterator> |     7 #include <iterator> | 
|     8  |     8  | 
|     9 #include "base/bind.h" |     9 #include "base/bind.h" | 
|    10 #include "base/callback.h" |    10 #include "base/callback.h" | 
 |    11 #include "base/debug/alias.h" | 
|    11 #include "base/file_util.h" |    12 #include "base/file_util.h" | 
|    12 #include "base/i18n/case_conversion.h" |    13 #include "base/i18n/case_conversion.h" | 
|    13 #include "base/logging.h" |    14 #include "base/logging.h" | 
|    14 #include "base/stl_util.h" |    15 #include "base/stl_util.h" | 
|    15 #include "base/stringprintf.h" |    16 #include "base/stringprintf.h" | 
|    16 #include "base/synchronization/lock.h" |    17 #include "base/synchronization/lock.h" | 
|    17 #include "base/sys_string_conversions.h" |    18 #include "base/sys_string_conversions.h" | 
|    18 #include "build/build_config.h" |    19 #include "build/build_config.h" | 
|    19 #include "content/browser/download/download_create_info.h" |    20 #include "content/browser/download/download_create_info.h" | 
|    20 #include "content/browser/download/download_file_manager.h" |    21 #include "content/browser/download/download_file_manager.h" | 
| (...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1136        it != history_downloads_.end(); ++it) { |  1137        it != history_downloads_.end(); ++it) { | 
|  1137     if (it->second->IsComplete() && !it->second->GetOpened()) |  1138     if (it->second->IsComplete() && !it->second->GetOpened()) | 
|  1138       ++num_unopened; |  1139       ++num_unopened; | 
|  1139   } |  1140   } | 
|  1140   download_stats::RecordOpensOutstanding(num_unopened); |  1141   download_stats::RecordOpensOutstanding(num_unopened); | 
|  1141 } |  1142 } | 
|  1142  |  1143  | 
|  1143 void DownloadManagerImpl::SetFileManager(DownloadFileManager* file_manager) { |  1144 void DownloadManagerImpl::SetFileManager(DownloadFileManager* file_manager) { | 
|  1144   file_manager_ = file_manager; |  1145   file_manager_ = file_manager; | 
|  1145 } |  1146 } | 
| OLD | NEW |