OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 int request_id, | 163 int request_id, |
164 NotificationManagerInterface::NotificationResult result); | 164 NotificationManagerInterface::NotificationResult result); |
165 | 165 |
166 // Resets the timeout timer for the specified request. | 166 // Resets the timeout timer for the specified request. |
167 void ResetTimer(int request_id); | 167 void ResetTimer(int request_id); |
168 | 168 |
169 RequestMap requests_; | 169 RequestMap requests_; |
170 NotificationManagerInterface* notification_manager_; // Not owned. | 170 NotificationManagerInterface* notification_manager_; // Not owned. |
171 int next_id_; | 171 int next_id_; |
172 base::TimeDelta timeout_; | 172 base::TimeDelta timeout_; |
| 173 ObserverList<Observer> observers_; |
173 base::WeakPtrFactory<RequestManager> weak_ptr_factory_; | 174 base::WeakPtrFactory<RequestManager> weak_ptr_factory_; |
174 ObserverList<Observer> observers_; | |
175 | 175 |
176 DISALLOW_COPY_AND_ASSIGN(RequestManager); | 176 DISALLOW_COPY_AND_ASSIGN(RequestManager); |
177 }; | 177 }; |
178 | 178 |
179 } // namespace file_system_provider | 179 } // namespace file_system_provider |
180 } // namespace chromeos | 180 } // namespace chromeos |
181 | 181 |
182 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ | 182 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ |
OLD | NEW |