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

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

Issue 638503002: Replacing the OVERRIDE with override and FINAL with final in content/browser/[download|… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
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/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"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 const base::Time& start_time, 174 const base::Time& start_time,
175 const base::Time& end_time, 175 const base::Time& end_time,
176 const std::string& etag, 176 const std::string& etag,
177 const std::string& last_modified, 177 const std::string& last_modified,
178 int64 received_bytes, 178 int64 received_bytes,
179 int64 total_bytes, 179 int64 total_bytes,
180 DownloadItem::DownloadState state, 180 DownloadItem::DownloadState state,
181 DownloadDangerType danger_type, 181 DownloadDangerType danger_type,
182 DownloadInterruptReason interrupt_reason, 182 DownloadInterruptReason interrupt_reason,
183 bool opened, 183 bool opened,
184 const net::BoundNetLog& bound_net_log) OVERRIDE { 184 const net::BoundNetLog& bound_net_log) override {
185 return new DownloadItemImpl( 185 return new DownloadItemImpl(
186 delegate, 186 delegate,
187 download_id, 187 download_id,
188 current_path, 188 current_path,
189 target_path, 189 target_path,
190 url_chain, 190 url_chain,
191 referrer_url, 191 referrer_url,
192 mime_type, 192 mime_type,
193 original_mime_type, 193 original_mime_type,
194 start_time, 194 start_time,
195 end_time, 195 end_time,
196 etag, 196 etag,
197 last_modified, 197 last_modified,
198 received_bytes, 198 received_bytes,
199 total_bytes, 199 total_bytes,
200 state, 200 state,
201 danger_type, 201 danger_type,
202 interrupt_reason, 202 interrupt_reason,
203 opened, 203 opened,
204 bound_net_log); 204 bound_net_log);
205 } 205 }
206 206
207 virtual DownloadItemImpl* CreateActiveItem( 207 virtual DownloadItemImpl* CreateActiveItem(
208 DownloadItemImplDelegate* delegate, 208 DownloadItemImplDelegate* delegate,
209 uint32 download_id, 209 uint32 download_id,
210 const DownloadCreateInfo& info, 210 const DownloadCreateInfo& info,
211 const net::BoundNetLog& bound_net_log) OVERRIDE { 211 const net::BoundNetLog& bound_net_log) override {
212 return new DownloadItemImpl(delegate, download_id, info, bound_net_log); 212 return new DownloadItemImpl(delegate, download_id, info, bound_net_log);
213 } 213 }
214 214
215 virtual DownloadItemImpl* CreateSavePageItem( 215 virtual DownloadItemImpl* CreateSavePageItem(
216 DownloadItemImplDelegate* delegate, 216 DownloadItemImplDelegate* delegate,
217 uint32 download_id, 217 uint32 download_id,
218 const base::FilePath& path, 218 const base::FilePath& path,
219 const GURL& url, 219 const GURL& url,
220 const std::string& mime_type, 220 const std::string& mime_type,
221 scoped_ptr<DownloadRequestHandleInterface> request_handle, 221 scoped_ptr<DownloadRequestHandleInterface> request_handle,
222 const net::BoundNetLog& bound_net_log) OVERRIDE { 222 const net::BoundNetLog& bound_net_log) override {
223 return new DownloadItemImpl(delegate, download_id, path, url, 223 return new DownloadItemImpl(delegate, download_id, path, url,
224 mime_type, request_handle.Pass(), 224 mime_type, request_handle.Pass(),
225 bound_net_log); 225 bound_net_log);
226 } 226 }
227 }; 227 };
228 228
229 } // namespace 229 } // namespace
230 230
231 DownloadManagerImpl::DownloadManagerImpl( 231 DownloadManagerImpl::DownloadManagerImpl(
232 net::NetLog* net_log, 232 net::NetLog* net_log,
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 if (delegate_) 716 if (delegate_)
717 delegate_->OpenDownload(download); 717 delegate_->OpenDownload(download);
718 } 718 }
719 719
720 void DownloadManagerImpl::ShowDownloadInShell(DownloadItemImpl* download) { 720 void DownloadManagerImpl::ShowDownloadInShell(DownloadItemImpl* download) {
721 if (delegate_) 721 if (delegate_)
722 delegate_->ShowDownloadInShell(download); 722 delegate_->ShowDownloadInShell(download);
723 } 723 }
724 724
725 } // namespace content 725 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl.h ('k') | content/browser/download/download_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698