| OLD | NEW |
| 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_DRAG_DOWNLOAD_FILE_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual IStream* GetStream() { return NULL; } | 56 virtual IStream* GetStream() { return NULL; } |
| 57 #endif | 57 #endif |
| 58 | 58 |
| 59 // content::DownloadManager::Observer methods. | 59 // content::DownloadManager::Observer methods. |
| 60 // Called on UI thread. | 60 // Called on UI thread. |
| 61 virtual void ModelChanged(content::DownloadManager* manager) OVERRIDE; | 61 virtual void ModelChanged(content::DownloadManager* manager) OVERRIDE; |
| 62 | 62 |
| 63 // content::DownloadItem::Observer methods. | 63 // content::DownloadItem::Observer methods. |
| 64 // Called on UI thread. | 64 // Called on UI thread. |
| 65 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE; | 65 virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE; |
| 66 virtual void OnDownloadOpened(content::DownloadItem* download) OVERRIDE { } | 66 virtual void OnDownloadDestroyed(content::DownloadItem* download) OVERRIDE; |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 // Called on drag-and-drop thread (Windows). | 69 // Called on drag-and-drop thread (Windows). |
| 70 // Called on UI thread (Windows). | 70 // Called on UI thread (Windows). |
| 71 virtual ~DragDownloadFile(); | 71 virtual ~DragDownloadFile(); |
| 72 | 72 |
| 73 // Called on drag-and-drop thread (Windows only). | 73 // Called on drag-and-drop thread (Windows only). |
| 74 #if defined(OS_WIN) | 74 #if defined(OS_WIN) |
| 75 void StartNestedMessageLoop(); | 75 void StartNestedMessageLoop(); |
| 76 void QuitNestedMessageLoop(); | 76 void QuitNestedMessageLoop(); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 // Access on UI thread. | 114 // Access on UI thread. |
| 115 content::DownloadManager* download_manager_; | 115 content::DownloadManager* download_manager_; |
| 116 bool download_manager_observer_added_; | 116 bool download_manager_observer_added_; |
| 117 content::DownloadItem* download_item_; | 117 content::DownloadItem* download_item_; |
| 118 | 118 |
| 119 DISALLOW_COPY_AND_ASSIGN(DragDownloadFile); | 119 DISALLOW_COPY_AND_ASSIGN(DragDownloadFile); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 #endif // CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ | 122 #endif // CONTENT_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_FILE_H_ |
| OLD | NEW |