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