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

Side by Side Diff: chrome/browser/download/drag_download_file.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, 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) 2009-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009-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 #ifndef CHROME_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_
6 #define CHROME_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "app/download_file_interface.h" 9 #include "app/download_file_interface.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // DownloadManager::Observer methods. 52 // DownloadManager::Observer methods.
53 // Called on UI thread. 53 // Called on UI thread.
54 virtual void ModelChanged(); 54 virtual void ModelChanged();
55 55
56 // DownloadItem::Observer methods. 56 // DownloadItem::Observer methods.
57 // Called on UI thread. 57 // Called on UI thread.
58 virtual void OnDownloadUpdated(DownloadItem* download); 58 virtual void OnDownloadUpdated(DownloadItem* download);
59 virtual void OnDownloadFileCompleted(DownloadItem* download); 59 virtual void OnDownloadFileCompleted(DownloadItem* download);
60 virtual void OnDownloadOpened(DownloadItem* download) { } 60 virtual void OnDownloadOpened(DownloadItem* download) { }
61 virtual void OnDownloadInterrupted(DownloadItem* download) { }
61 62
62 private: 63 private:
63 // Called on drag-and-drop thread (Windows). 64 // Called on drag-and-drop thread (Windows).
64 // Called on UI thread (Windows). 65 // Called on UI thread (Windows).
65 virtual ~DragDownloadFile(); 66 virtual ~DragDownloadFile();
66 67
67 // Called on drag-and-drop thread (Windows only). 68 // Called on drag-and-drop thread (Windows only).
68 #if defined(OS_WIN) 69 #if defined(OS_WIN)
69 void StartNestedMessageLoop(); 70 void StartNestedMessageLoop();
70 void QuitNestedMessageLoop(); 71 void QuitNestedMessageLoop();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 #endif 105 #endif
105 106
106 // Access on UI thread. 107 // Access on UI thread.
107 DownloadManager* download_manager_; 108 DownloadManager* download_manager_;
108 bool download_item_observer_added_; 109 bool download_item_observer_added_;
109 110
110 DISALLOW_COPY_AND_ASSIGN(DragDownloadFile); 111 DISALLOW_COPY_AND_ASSIGN(DragDownloadFile);
111 }; 112 };
112 113
113 #endif // CHROME_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ 114 #endif // CHROME_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698