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 <stdint.h> |
| 9 |
8 #include <map> | 10 #include <map> |
9 #include <string> | 11 #include <string> |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 #include "base/basictypes.h" | |
13 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
14 #include "base/files/file_path_watcher.h" | 15 #include "base/files/file_path_watcher.h" |
| 16 #include "base/macros.h" |
15 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
16 #include "chrome/browser/chromeos/drive/drive_integration_service.h" | 18 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
17 #include "chrome/browser/chromeos/extensions/file_manager/device_event_router.h" | 19 #include "chrome/browser/chromeos/extensions/file_manager/device_event_router.h" |
18 #include "chrome/browser/chromeos/extensions/file_manager/job_event_router.h" | 20 #include "chrome/browser/chromeos/extensions/file_manager/job_event_router.h" |
19 #include "chrome/browser/chromeos/file_manager/file_watcher.h" | 21 #include "chrome/browser/chromeos/file_manager/file_watcher.h" |
20 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" | 22 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" |
21 #include "chrome/browser/chromeos/file_manager/volume_manager.h" | 23 #include "chrome/browser/chromeos/file_manager/volume_manager.h" |
22 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" | 24 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" |
23 #include "chrome/common/extensions/api/file_manager_private.h" | 25 #include "chrome/common/extensions/api/file_manager_private.h" |
24 #include "chromeos/disks/disk_mount_manager.h" | 26 #include "chromeos/disks/disk_mount_manager.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // Called when a copy task is completed. | 97 // Called when a copy task is completed. |
96 void OnCopyCompleted( | 98 void OnCopyCompleted( |
97 int copy_id, const GURL& source_url, const GURL& destination_url, | 99 int copy_id, const GURL& source_url, const GURL& destination_url, |
98 base::File::Error error); | 100 base::File::Error error); |
99 | 101 |
100 // Called when a copy task progress is updated. | 102 // Called when a copy task progress is updated. |
101 void OnCopyProgress(int copy_id, | 103 void OnCopyProgress(int copy_id, |
102 storage::FileSystemOperation::CopyProgressType type, | 104 storage::FileSystemOperation::CopyProgressType type, |
103 const GURL& source_url, | 105 const GURL& source_url, |
104 const GURL& destination_url, | 106 const GURL& destination_url, |
105 int64 size); | 107 int64_t size); |
106 | 108 |
107 // Called when a notification from a watcher manager arrives. | 109 // Called when a notification from a watcher manager arrives. |
108 void OnWatcherManagerNotification( | 110 void OnWatcherManagerNotification( |
109 const storage::FileSystemURL& file_system_url, | 111 const storage::FileSystemURL& file_system_url, |
110 const std::string& extension_id, | 112 const std::string& extension_id, |
111 storage::WatcherManager::ChangeType change_type); | 113 storage::WatcherManager::ChangeType change_type); |
112 | 114 |
113 // chromeos::NetworkStateHandlerObserver overrides. | 115 // chromeos::NetworkStateHandlerObserver overrides. |
114 void DefaultNetworkChanged(const chromeos::NetworkState* network) override; | 116 void DefaultNetworkChanged(const chromeos::NetworkState* network) override; |
115 | 117 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // Note: This should remain the last member so it'll be destroyed and | 227 // Note: This should remain the last member so it'll be destroyed and |
226 // invalidate the weak pointers before any other members are destroyed. | 228 // invalidate the weak pointers before any other members are destroyed. |
227 base::WeakPtrFactory<EventRouter> weak_factory_; | 229 base::WeakPtrFactory<EventRouter> weak_factory_; |
228 | 230 |
229 DISALLOW_COPY_AND_ASSIGN(EventRouter); | 231 DISALLOW_COPY_AND_ASSIGN(EventRouter); |
230 }; | 232 }; |
231 | 233 |
232 } // namespace file_manager | 234 } // namespace file_manager |
233 | 235 |
234 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ | 236 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
OLD | NEW |