| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_DOWNLOAD_DOWNLOAD_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_DOWNLOAD_DOWNLOAD_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_DOWNLOAD_DOWNLOAD_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_DOWNLOAD_DOWNLOAD_TAB_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "chrome/browser/download/save_package.h" | 10 #include "content/browser/download/save_package.h" |
| 11 #include "content/browser/tab_contents/tab_contents_observer.h" | 11 #include "content/browser/tab_contents/tab_contents_observer.h" |
| 12 | 12 |
| 13 class DownloadItem; | 13 class DownloadItem; |
| 14 class DownloadTabHelperDelegate; | 14 class DownloadTabHelperDelegate; |
| 15 class TabContentsWrapper; | 15 class TabContentsWrapper; |
| 16 | 16 |
| 17 // Per-tab download controller. Handles dealing with various per-tab download | 17 // Per-tab download controller. Handles dealing with various per-tab download |
| 18 // duties. | 18 // duties. |
| 19 class DownloadTabHelper : public TabContentsObserver { | 19 class DownloadTabHelper : public TabContentsObserver { |
| 20 public: | 20 public: |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 TabContentsWrapper* tab_contents_wrapper_; | 59 TabContentsWrapper* tab_contents_wrapper_; |
| 60 | 60 |
| 61 // Delegate for notifying our owner (usually Browser) about stuff. Not owned | 61 // Delegate for notifying our owner (usually Browser) about stuff. Not owned |
| 62 // by us. | 62 // by us. |
| 63 DownloadTabHelperDelegate* delegate_; | 63 DownloadTabHelperDelegate* delegate_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(DownloadTabHelper); | 65 DISALLOW_COPY_AND_ASSIGN(DownloadTabHelper); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 #endif // CHROME_BROWSER_UI_DOWNLOAD_DOWNLOAD_TAB_HELPER_H_ | 68 #endif // CHROME_BROWSER_UI_DOWNLOAD_DOWNLOAD_TAB_HELPER_H_ |
| OLD | NEW |