Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: chrome/browser/chromeos/drive/download_handler.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "chrome/browser/download/all_download_item_notifier.h" 13 #include "chrome/browser/download/all_download_item_notifier.h"
14 #include "components/drive/file_errors.h" 14 #include "components/drive/file_errors.h"
15 #include "content/public/browser/download_manager_delegate.h" 15 #include "content/public/browser/download_manager_delegate.h"
16 16
17 class Profile; 17 class Profile;
18 18
19 namespace content { 19 namespace content {
20 class DownloadItem; 20 class DownloadItem;
21 class DownloadManager; 21 class DownloadManager;
22 } 22 }
23 23
24 namespace drive { 24 namespace drive {
25 25
26 class FileSystemInterface; 26 class FileSystemInterface;
27 class ResourceEntry;
28 27
29 // Observes downloads to temporary local drive folder. Schedules these 28 // Observes downloads to temporary local drive folder. Schedules these
30 // downloads for upload to drive service. 29 // downloads for upload to drive service.
31 class DownloadHandler : public AllDownloadItemNotifier::Observer { 30 class DownloadHandler : public AllDownloadItemNotifier::Observer {
32 public: 31 public:
33 explicit DownloadHandler(FileSystemInterface* file_system); 32 explicit DownloadHandler(FileSystemInterface* file_system);
34 ~DownloadHandler() override; 33 ~DownloadHandler() override;
35 34
36 // Utility method to get DownloadHandler with profile. 35 // Utility method to get DownloadHandler with profile.
37 static DownloadHandler* GetForProfile(Profile* profile); 36 static DownloadHandler* GetForProfile(Profile* profile);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // Note: This should remain the last member so it'll be destroyed and 137 // Note: This should remain the last member so it'll be destroyed and
139 // invalidate its weak pointers before any other members are destroyed. 138 // invalidate its weak pointers before any other members are destroyed.
140 base::WeakPtrFactory<DownloadHandler> weak_ptr_factory_; 139 base::WeakPtrFactory<DownloadHandler> weak_ptr_factory_;
141 140
142 DISALLOW_COPY_AND_ASSIGN(DownloadHandler); 141 DISALLOW_COPY_AND_ASSIGN(DownloadHandler);
143 }; 142 };
144 143
145 } // namespace drive 144 } // namespace drive
146 145
147 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_ 146 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DOWNLOAD_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/display/display_preferences.h ('k') | chrome/browser/chromeos/drive/fileapi/async_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698