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

Side by Side Diff: content/browser/download/download_file.cc

Issue 7660007: Factor out dependncy on download throttling from core download code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 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_file.h" 5 #include "content/browser/download/download_file.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
11 #include "chrome/browser/download/download_util.h"
12 #include "content/browser/browser_thread.h" 11 #include "content/browser/browser_thread.h"
13 #include "content/browser/download/download_create_info.h" 12 #include "content/browser/download/download_create_info.h"
14 #include "content/browser/download/download_manager.h" 13 #include "content/browser/download/download_manager.h"
15 14
16 DownloadFile::DownloadFile(const DownloadCreateInfo* info, 15 DownloadFile::DownloadFile(const DownloadCreateInfo* info,
17 DownloadManager* download_manager) 16 DownloadManager* download_manager)
18 : BaseFile(info->save_info.file_path, 17 : BaseFile(info->save_info.file_path,
19 info->url(), 18 info->url(),
20 info->referrer_url, 19 info->referrer_url,
21 info->received_bytes, 20 info->received_bytes,
(...skipping 21 matching lines...) Expand all
43 std::string DownloadFile::DebugString() const { 42 std::string DownloadFile::DebugString() const {
44 return base::StringPrintf("{" 43 return base::StringPrintf("{"
45 " id_ = " "%d" 44 " id_ = " "%d"
46 " request_handle = %s" 45 " request_handle = %s"
47 " Base File = %s" 46 " Base File = %s"
48 " }", 47 " }",
49 id_, 48 id_,
50 request_handle_.DebugString().c_str(), 49 request_handle_.DebugString().c_str(),
51 BaseFile::DebugString().c_str()); 50 BaseFile::DebugString().c_str());
52 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698