| 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 24 matching lines...) Expand all Loading... |
| 35 case CREATE_DIRECTORY: | 35 case CREATE_DIRECTORY: |
| 36 return "CREATE_DIRECTORY"; | 36 return "CREATE_DIRECTORY"; |
| 37 case DELETE_ENTRY: | 37 case DELETE_ENTRY: |
| 38 return "DELETE_ENTRY"; | 38 return "DELETE_ENTRY"; |
| 39 case CREATE_FILE: | 39 case CREATE_FILE: |
| 40 return "CREATE_FILE"; | 40 return "CREATE_FILE"; |
| 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: |
| 46 return "TRUNCATE"; |
| 45 case TESTING: | 47 case TESTING: |
| 46 return "TESTING"; | 48 return "TESTING"; |
| 47 } | 49 } |
| 48 NOTREACHED(); | 50 NOTREACHED(); |
| 49 return ""; | 51 return ""; |
| 50 } | 52 } |
| 51 | 53 |
| 52 RequestManager::RequestManager( | 54 RequestManager::RequestManager( |
| 53 NotificationManagerInterface* notification_manager) | 55 NotificationManagerInterface* notification_manager) |
| 54 : notification_manager_(notification_manager), | 56 : notification_manager_(notification_manager), |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 notification_manager_->HideUnresponsiveNotification(request_id); | 234 notification_manager_->HideUnresponsiveNotification(request_id); |
| 233 | 235 |
| 234 FOR_EACH_OBSERVER(Observer, observers_, OnRequestDestroyed(request_id)); | 236 FOR_EACH_OBSERVER(Observer, observers_, OnRequestDestroyed(request_id)); |
| 235 | 237 |
| 236 TRACE_EVENT_ASYNC_END0( | 238 TRACE_EVENT_ASYNC_END0( |
| 237 "file_system_provider", "RequestManager::Request", request_id); | 239 "file_system_provider", "RequestManager::Request", request_id); |
| 238 } | 240 } |
| 239 | 241 |
| 240 } // namespace file_system_provider | 242 } // namespace file_system_provider |
| 241 } // namespace chromeos | 243 } // namespace chromeos |
| OLD | NEW |