OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |