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 CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/chromeos/drive/file_errors.h" | |
11 #include "chrome/browser/download/all_download_item_notifier.h" | 10 #include "chrome/browser/download/all_download_item_notifier.h" |
| 11 #include "components/drive/file_errors.h" |
12 #include "content/public/browser/download_manager_delegate.h" | 12 #include "content/public/browser/download_manager_delegate.h" |
13 | 13 |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 class DownloadItem; | 17 class DownloadItem; |
18 class DownloadManager; | 18 class DownloadManager; |
19 } | 19 } |
20 | 20 |
21 namespace drive { | 21 namespace drive { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Note: This should remain the last member so it'll be destroyed and | 114 // Note: This should remain the last member so it'll be destroyed and |
115 // invalidate its weak pointers before any other members are destroyed. | 115 // invalidate its weak pointers before any other members are destroyed. |
116 base::WeakPtrFactory<DownloadHandler> weak_ptr_factory_; | 116 base::WeakPtrFactory<DownloadHandler> weak_ptr_factory_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(DownloadHandler); | 118 DISALLOW_COPY_AND_ASSIGN(DownloadHandler); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace drive | 121 } // namespace drive |
122 | 122 |
123 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_ | 123 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_ |
OLD | NEW |