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

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

Issue 8008021: Add new UMA stats to get a handle on Downloads UI Usage (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: uma Created 9 years, 3 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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // Asks the user for the path to save a page. The delegate calls 99 // Asks the user for the path to save a page. The delegate calls
100 // SavePackage::OnPathPicked to give the answer. 100 // SavePackage::OnPathPicked to give the answer.
101 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, 101 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package,
102 const FilePath& suggested_path, 102 const FilePath& suggested_path,
103 bool can_save_as_complete) = 0; 103 bool can_save_as_complete) = 0;
104 104
105 // Informs the delegate that the progress of downloads has changed. 105 // Informs the delegate that the progress of downloads has changed.
106 virtual void DownloadProgressUpdated() = 0; 106 virtual void DownloadProgressUpdated() = 0;
107 107
108 virtual void MarkDownloadOpened(int64 db_handle) = 0;
109
108 protected: 110 protected:
109 DownloadManagerDelegate() {} 111 DownloadManagerDelegate() {}
110 112
111 DISALLOW_COPY_AND_ASSIGN(DownloadManagerDelegate); 113 DISALLOW_COPY_AND_ASSIGN(DownloadManagerDelegate);
112 }; 114 };
113 115
114 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_ 116 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698