| 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 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" | 5 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 case COPY_ENTRY: | 41 case COPY_ENTRY: |
| 42 return "COPY_ENTRY"; | 42 return "COPY_ENTRY"; |
| 43 case MOVE_ENTRY: | 43 case MOVE_ENTRY: |
| 44 return "MOVE_ENTRY"; | 44 return "MOVE_ENTRY"; |
| 45 case TRUNCATE: | 45 case TRUNCATE: |
| 46 return "TRUNCATE"; | 46 return "TRUNCATE"; |
| 47 case WRITE_FILE: | 47 case WRITE_FILE: |
| 48 return "WRITE_FILE"; | 48 return "WRITE_FILE"; |
| 49 case ABORT: | 49 case ABORT: |
| 50 return "ABORT"; | 50 return "ABORT"; |
| 51 case OBSERVE_DIRECTORY: |
| 52 return "OBSERVE_DIRECTORY"; |
| 53 case UNOBSERVE_ENTRY: |
| 54 return "UNOBSERVE_ENTRY"; |
| 51 case TESTING: | 55 case TESTING: |
| 52 return "TESTING"; | 56 return "TESTING"; |
| 53 } | 57 } |
| 54 NOTREACHED(); | 58 NOTREACHED(); |
| 55 return ""; | 59 return ""; |
| 56 } | 60 } |
| 57 | 61 |
| 58 RequestManager::RequestManager( | 62 RequestManager::RequestManager( |
| 59 NotificationManagerInterface* notification_manager) | 63 NotificationManagerInterface* notification_manager) |
| 60 : notification_manager_(notification_manager), | 64 : notification_manager_(notification_manager), |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 notification_manager_->HideUnresponsiveNotification(request_id); | 250 notification_manager_->HideUnresponsiveNotification(request_id); |
| 247 | 251 |
| 248 FOR_EACH_OBSERVER(Observer, observers_, OnRequestDestroyed(request_id)); | 252 FOR_EACH_OBSERVER(Observer, observers_, OnRequestDestroyed(request_id)); |
| 249 | 253 |
| 250 TRACE_EVENT_ASYNC_END0( | 254 TRACE_EVENT_ASYNC_END0( |
| 251 "file_system_provider", "RequestManager::Request", request_id); | 255 "file_system_provider", "RequestManager::Request", request_id); |
| 252 } | 256 } |
| 253 | 257 |
| 254 } // namespace file_system_provider | 258 } // namespace file_system_provider |
| 255 } // namespace chromeos | 259 } // namespace chromeos |
| OLD | NEW |