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_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/files/file_path_watcher.h" | 13 #include "base/files/file_path_watcher.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "chrome/browser/chromeos/drive/drive_integration_service.h" | 15 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
16 #include "chrome/browser/chromeos/drive/file_system_observer.h" | 16 #include "chrome/browser/chromeos/drive/file_system_observer.h" |
17 #include "chrome/browser/chromeos/drive/job_list.h" | 17 #include "chrome/browser/chromeos/drive/job_list.h" |
18 #include "chrome/browser/chromeos/drive/sync_client.h" | 18 #include "chrome/browser/chromeos/drive/sync_client.h" |
19 #include "chrome/browser/chromeos/file_manager/file_watcher.h" | 19 #include "chrome/browser/chromeos/file_manager/file_watcher.h" |
20 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" | 20 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" |
21 #include "chrome/browser/chromeos/file_manager/volume_manager.h" | 21 #include "chrome/browser/chromeos/file_manager/volume_manager.h" |
22 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" | 22 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" |
23 #include "chrome/browser/drive/drive_service_interface.h" | 23 #include "chrome/browser/drive/drive_service_interface.h" |
24 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" | 24 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" |
25 #include "chrome/common/extensions/api/file_browser_private.h" | 25 #include "chrome/common/extensions/api/file_browser_private.h" |
26 #include "chromeos/disks/disk_mount_manager.h" | 26 #include "chromeos/disks/disk_mount_manager.h" |
27 #include "chromeos/network/network_state_handler_observer.h" | 27 #include "chromeos/network/network_state_handler_observer.h" |
28 #include "content/public/browser/notification_observer.h" | 28 #include "content/public/browser/notification_observer.h" |
29 #include "content/public/browser/notification_registrar.h" | 29 #include "content/public/browser/notification_registrar.h" |
30 #include "webkit/browser/fileapi/file_system_operation.h" | 30 #include "storage/browser/fileapi/file_system_operation.h" |
31 | 31 |
32 class PrefChangeRegistrar; | 32 class PrefChangeRegistrar; |
33 class Profile; | 33 class Profile; |
34 | 34 |
35 using file_manager::util::EntryDefinition; | 35 using file_manager::util::EntryDefinition; |
36 | 36 |
37 namespace base { | 37 namespace base { |
38 class ListValue; | 38 class ListValue; |
39 } | 39 } |
40 | 40 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 void RemoveFileWatch(const base::FilePath& local_path, | 83 void RemoveFileWatch(const base::FilePath& local_path, |
84 const std::string& extension_id); | 84 const std::string& extension_id); |
85 | 85 |
86 // Called when a copy task is completed. | 86 // Called when a copy task is completed. |
87 void OnCopyCompleted( | 87 void OnCopyCompleted( |
88 int copy_id, const GURL& source_url, const GURL& destination_url, | 88 int copy_id, const GURL& source_url, const GURL& destination_url, |
89 base::File::Error error); | 89 base::File::Error error); |
90 | 90 |
91 // Called when a copy task progress is updated. | 91 // Called when a copy task progress is updated. |
92 void OnCopyProgress(int copy_id, | 92 void OnCopyProgress(int copy_id, |
93 fileapi::FileSystemOperation::CopyProgressType type, | 93 storage::FileSystemOperation::CopyProgressType type, |
94 const GURL& source_url, | 94 const GURL& source_url, |
95 const GURL& destination_url, | 95 const GURL& destination_url, |
96 int64 size); | 96 int64 size); |
97 | 97 |
98 // Register observer to the multi user window manager. | 98 // Register observer to the multi user window manager. |
99 void RegisterMultiUserWindowManagerObserver(); | 99 void RegisterMultiUserWindowManagerObserver(); |
100 | 100 |
101 // chromeos::NetworkStateHandlerObserver overrides. | 101 // chromeos::NetworkStateHandlerObserver overrides. |
102 virtual void DefaultNetworkChanged( | 102 virtual void DefaultNetworkChanged( |
103 const chromeos::NetworkState* network) OVERRIDE; | 103 const chromeos::NetworkState* network) OVERRIDE; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 215 |
216 // Note: This should remain the last member so it'll be destroyed and | 216 // Note: This should remain the last member so it'll be destroyed and |
217 // invalidate the weak pointers before any other members are destroyed. | 217 // invalidate the weak pointers before any other members are destroyed. |
218 base::WeakPtrFactory<EventRouter> weak_factory_; | 218 base::WeakPtrFactory<EventRouter> weak_factory_; |
219 DISALLOW_COPY_AND_ASSIGN(EventRouter); | 219 DISALLOW_COPY_AND_ASSIGN(EventRouter); |
220 }; | 220 }; |
221 | 221 |
222 } // namespace file_manager | 222 } // namespace file_manager |
223 | 223 |
224 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ | 224 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
OLD | NEW |