| 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_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ | 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual BrowserContext* GetBrowserContext() const; | 70 virtual BrowserContext* GetBrowserContext() const; |
| 71 | 71 |
| 72 // Update the persistent store with our information. | 72 // Update the persistent store with our information. |
| 73 virtual void UpdatePersistence(DownloadItemImpl* download); | 73 virtual void UpdatePersistence(DownloadItemImpl* download); |
| 74 | 74 |
| 75 // Handle any delegate portions of a state change operation on the | 75 // Handle any delegate portions of a state change operation on the |
| 76 // DownloadItem. | 76 // DownloadItem. |
| 77 virtual void DownloadOpened(DownloadItemImpl* download); | 77 virtual void DownloadOpened(DownloadItemImpl* download); |
| 78 virtual void DownloadRemoved(DownloadItemImpl* download); | 78 virtual void DownloadRemoved(DownloadItemImpl* download); |
| 79 | 79 |
| 80 // Show the download in the browser. | |
| 81 virtual void ShowDownloadInBrowser(DownloadItemImpl* download); | |
| 82 | |
| 83 // Assert consistent state for delgate object at various transitions. | 80 // Assert consistent state for delgate object at various transitions. |
| 84 virtual void AssertStateConsistent(DownloadItemImpl* download) const; | 81 virtual void AssertStateConsistent(DownloadItemImpl* download) const; |
| 85 | 82 |
| 86 private: | 83 private: |
| 87 // For "Outlives attached DownloadItemImpl" invariant assertion. | 84 // For "Outlives attached DownloadItemImpl" invariant assertion. |
| 88 int count_; | 85 int count_; |
| 89 | 86 |
| 90 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate); | 87 DISALLOW_COPY_AND_ASSIGN(DownloadItemImplDelegate); |
| 91 }; | 88 }; |
| 92 | 89 |
| 93 } // namespace content | 90 } // namespace content |
| 94 | 91 |
| 95 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ | 92 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_DELEGATE_H_ |
| OLD | NEW |