OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/save_file.h" | 5 #include "content/browser/download/save_file.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 } | 65 } |
66 | 66 |
67 base::FilePath SaveFile::FullPath() const { | 67 base::FilePath SaveFile::FullPath() const { |
68 return file_.full_path(); | 68 return file_.full_path(); |
69 } | 69 } |
70 | 70 |
71 bool SaveFile::InProgress() const { | 71 bool SaveFile::InProgress() const { |
72 return file_.in_progress(); | 72 return file_.in_progress(); |
73 } | 73 } |
74 | 74 |
75 int64 SaveFile::BytesSoFar() const { | 75 int64_t SaveFile::BytesSoFar() const { |
76 return file_.bytes_so_far(); | 76 return file_.bytes_so_far(); |
77 } | 77 } |
78 | 78 |
79 bool SaveFile::GetHash(std::string* hash) { | 79 bool SaveFile::GetHash(std::string* hash) { |
80 return file_.GetHash(hash); | 80 return file_.GetHash(hash); |
81 } | 81 } |
82 | 82 |
83 std::string SaveFile::DebugString() const { | 83 std::string SaveFile::DebugString() const { |
84 return file_.DebugString(); | 84 return file_.DebugString(); |
85 } | 85 } |
86 | 86 |
87 } // namespace content | 87 } // namespace content |
OLD | NEW |