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 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const std::string& extension_id, | 66 const std::string& extension_id, |
67 const BoolCallback& callback); | 67 const BoolCallback& callback); |
68 | 68 |
69 // Removes a file watch at |local_path| for an extension with |extension_id|. | 69 // Removes a file watch at |local_path| for an extension with |extension_id|. |
70 void RemoveFileWatch(const base::FilePath& local_path, | 70 void RemoveFileWatch(const base::FilePath& local_path, |
71 const std::string& extension_id); | 71 const std::string& extension_id); |
72 | 72 |
73 // Called when a copy task is completed. | 73 // Called when a copy task is completed. |
74 void OnCopyCompleted( | 74 void OnCopyCompleted( |
75 int copy_id, const GURL& source_url, const GURL& destination_url, | 75 int copy_id, const GURL& source_url, const GURL& destination_url, |
76 base::PlatformFileError error); | 76 base::File::Error error); |
77 | 77 |
78 // Called when a copy task progress is updated. | 78 // Called when a copy task progress is updated. |
79 void OnCopyProgress(int copy_id, | 79 void OnCopyProgress(int copy_id, |
80 fileapi::FileSystemOperation::CopyProgressType type, | 80 fileapi::FileSystemOperation::CopyProgressType type, |
81 const GURL& source_url, | 81 const GURL& source_url, |
82 const GURL& destination_url, | 82 const GURL& destination_url, |
83 int64 size); | 83 int64 size); |
84 | 84 |
85 // chromeos::NetworkStateHandlerObserver overrides. | 85 // chromeos::NetworkStateHandlerObserver overrides. |
86 virtual void DefaultNetworkChanged( | 86 virtual void DefaultNetworkChanged( |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 // Note: This should remain the last member so it'll be destroyed and | 170 // Note: This should remain the last member so it'll be destroyed and |
171 // invalidate the weak pointers before any other members are destroyed. | 171 // invalidate the weak pointers before any other members are destroyed. |
172 base::WeakPtrFactory<EventRouter> weak_factory_; | 172 base::WeakPtrFactory<EventRouter> weak_factory_; |
173 DISALLOW_COPY_AND_ASSIGN(EventRouter); | 173 DISALLOW_COPY_AND_ASSIGN(EventRouter); |
174 }; | 174 }; |
175 | 175 |
176 } // namespace file_manager | 176 } // namespace file_manager |
177 | 177 |
178 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ | 178 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_EVENT_ROUTER_H_ |
OLD | NEW |