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

Side by Side Diff: content/browser/download/download_item_impl.h

Issue 11640007: Make the UI an observer of downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android clang build Created 7 years, 9 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) 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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const DownloadCreateInfo& info, 73 const DownloadCreateInfo& info,
74 const net::BoundNetLog& bound_net_log); 74 const net::BoundNetLog& bound_net_log);
75 75
76 // Constructing for the "Save Page As..." feature: 76 // Constructing for the "Save Page As..." feature:
77 // |bound_net_log| is constructed externally for our use. 77 // |bound_net_log| is constructed externally for our use.
78 DownloadItemImpl(DownloadItemImplDelegate* delegate, 78 DownloadItemImpl(DownloadItemImplDelegate* delegate,
79 const base::FilePath& path, 79 const base::FilePath& path,
80 const GURL& url, 80 const GURL& url,
81 DownloadId download_id, 81 DownloadId download_id,
82 const std::string& mime_type, 82 const std::string& mime_type,
83 scoped_ptr<DownloadRequestHandleInterface> request_handle,
83 const net::BoundNetLog& bound_net_log); 84 const net::BoundNetLog& bound_net_log);
84 85
85 virtual ~DownloadItemImpl(); 86 virtual ~DownloadItemImpl();
86 87
87 // DownloadItem 88 // DownloadItem
88 virtual void AddObserver(DownloadItem::Observer* observer) OVERRIDE; 89 virtual void AddObserver(DownloadItem::Observer* observer) OVERRIDE;
89 virtual void RemoveObserver(DownloadItem::Observer* observer) OVERRIDE; 90 virtual void RemoveObserver(DownloadItem::Observer* observer) OVERRIDE;
90 virtual void UpdateObservers() OVERRIDE; 91 virtual void UpdateObservers() OVERRIDE;
91 virtual void DangerousDownloadValidated() OVERRIDE; 92 virtual void DangerousDownloadValidated() OVERRIDE;
92 virtual void Pause() OVERRIDE; 93 virtual void Pause() OVERRIDE;
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 const net::BoundNetLog bound_net_log_; 482 const net::BoundNetLog bound_net_log_;
482 483
483 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; 484 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
484 485
485 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 486 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
486 }; 487 };
487 488
488 } // namespace content 489 } // namespace content
489 490
490 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 491 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_item_factory.h ('k') | content/browser/download/download_item_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698