| 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 14 matching lines...) Expand all Loading... |
| 25 case GET_METADATA: | 25 case GET_METADATA: |
| 26 return "GET_METADATA"; | 26 return "GET_METADATA"; |
| 27 case READ_DIRECTORY: | 27 case READ_DIRECTORY: |
| 28 return "READ_DIRECTORY"; | 28 return "READ_DIRECTORY"; |
| 29 case OPEN_FILE: | 29 case OPEN_FILE: |
| 30 return "OPEN_FILE"; | 30 return "OPEN_FILE"; |
| 31 case CLOSE_FILE: | 31 case CLOSE_FILE: |
| 32 return "CLOSE_FILE"; | 32 return "CLOSE_FILE"; |
| 33 case READ_FILE: | 33 case READ_FILE: |
| 34 return "READ_FILE"; | 34 return "READ_FILE"; |
| 35 case CREATE_DIRECTORY: |
| 36 return "CREATE_DIRECTORY"; |
| 35 case TESTING: | 37 case TESTING: |
| 36 return "TESTING"; | 38 return "TESTING"; |
| 37 } | 39 } |
| 38 NOTREACHED(); | 40 NOTREACHED(); |
| 39 return ""; | 41 return ""; |
| 40 } | 42 } |
| 41 | 43 |
| 42 RequestManager::RequestManager( | 44 RequestManager::RequestManager( |
| 43 NotificationManagerInterface* notification_manager) | 45 NotificationManagerInterface* notification_manager) |
| 44 : notification_manager_(notification_manager), | 46 : notification_manager_(notification_manager), |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 notification_manager_->HideUnresponsiveNotification(request_id); | 224 notification_manager_->HideUnresponsiveNotification(request_id); |
| 223 | 225 |
| 224 FOR_EACH_OBSERVER(Observer, observers_, OnRequestDestroyed(request_id)); | 226 FOR_EACH_OBSERVER(Observer, observers_, OnRequestDestroyed(request_id)); |
| 225 | 227 |
| 226 TRACE_EVENT_ASYNC_END0( | 228 TRACE_EVENT_ASYNC_END0( |
| 227 "file_system_provider", "RequestManager::Request", request_id); | 229 "file_system_provider", "RequestManager::Request", request_id); |
| 228 } | 230 } |
| 229 | 231 |
| 230 } // namespace file_system_provider | 232 } // namespace file_system_provider |
| 231 } // namespace chromeos | 233 } // namespace chromeos |
| OLD | NEW |