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

Side by Side Diff: chrome/browser/chromeos/dom_ui/imageburner_ui.h

Issue 3127008: Preliminary work on resuming downloads whose connections have expired.
Patch Set: Waiting to send download automation error message until after other downloads are canceled. Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 5
6 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_IMAGEBURNER_UI_H_ 6 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_IMAGEBURNER_UI_H_
7 #define CHROME_BROWSER_CHROMEOS_DOM_UI_IMAGEBURNER_UI_H_ 7 #define CHROME_BROWSER_CHROMEOS_DOM_UI_IMAGEBURNER_UI_H_
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // chromeos::BurnLibrary::Observer interface 78 // chromeos::BurnLibrary::Observer interface
79 virtual void ProgressUpdated(chromeos::BurnLibrary* object, 79 virtual void ProgressUpdated(chromeos::BurnLibrary* object,
80 chromeos::BurnEventType evt, 80 chromeos::BurnEventType evt,
81 const ImageBurnStatus& status); 81 const ImageBurnStatus& status);
82 82
83 // DownloadItem::Observer interface 83 // DownloadItem::Observer interface
84 virtual void OnDownloadUpdated(DownloadItem* download); 84 virtual void OnDownloadUpdated(DownloadItem* download);
85 virtual void OnDownloadFileCompleted(DownloadItem* download); 85 virtual void OnDownloadFileCompleted(DownloadItem* download);
86 virtual void OnDownloadOpened(DownloadItem* download); 86 virtual void OnDownloadOpened(DownloadItem* download);
87 virtual void OnDownloadInterrupted(DownloadItem* download) {}
87 88
88 // DownloadManager::Observer interface 89 // DownloadManager::Observer interface
89 virtual void ModelChanged(); 90 virtual void ModelChanged();
90 91
91 void CreateImageUrlCallback(GURL* image_url); 92 void CreateImageUrlCallback(GURL* image_url);
92 93
93 94
94 private: 95 private:
95 // Callback for the "getRoots" message. 96 // Callback for the "getRoots" message.
96 void HandleGetRoots(const ListValue* args); 97 void HandleGetRoots(const ListValue* args);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 class ImageBurnResourceManager : public DownloadManager::Observer, 159 class ImageBurnResourceManager : public DownloadManager::Observer,
159 public DownloadItem::Observer { 160 public DownloadItem::Observer {
160 public: 161 public:
161 ImageBurnResourceManager(); 162 ImageBurnResourceManager();
162 ~ImageBurnResourceManager(); 163 ~ImageBurnResourceManager();
163 164
164 // DownloadItem::Observer interface 165 // DownloadItem::Observer interface
165 virtual void OnDownloadUpdated(DownloadItem* download); 166 virtual void OnDownloadUpdated(DownloadItem* download);
166 virtual void OnDownloadFileCompleted(DownloadItem* download); 167 virtual void OnDownloadFileCompleted(DownloadItem* download);
167 virtual void OnDownloadOpened(DownloadItem* download); 168 virtual void OnDownloadOpened(DownloadItem* download);
169 virtual void OnDownloadInterrupted(DownloadItem* download) {}
168 170
169 // DownloadManager::Observer interface 171 // DownloadManager::Observer interface
170 virtual void ModelChanged(); 172 virtual void ModelChanged();
171 173
172 FilePath GetLocalImageDirPath(); 174 FilePath GetLocalImageDirPath();
173 175
174 bool CheckImageDownloadStarted(); 176 bool CheckImageDownloadStarted();
175 177
176 void ReportImageDownloadStarted(); 178 void ReportImageDownloadStarted();
177 179
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 212
211 class ImageBurnUI : public DOMUI { 213 class ImageBurnUI : public DOMUI {
212 public: 214 public:
213 explicit ImageBurnUI(TabContents* contents); 215 explicit ImageBurnUI(TabContents* contents);
214 216
215 private: 217 private:
216 DISALLOW_COPY_AND_ASSIGN(ImageBurnUI); 218 DISALLOW_COPY_AND_ASSIGN(ImageBurnUI);
217 }; 219 };
218 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_IMAGEBURNER_UI_H_ 220 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_IMAGEBURNER_UI_H_
219 221
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698