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: | 51 case ADD_WATCHER: |
52 return "OBSERVE_DIRECTORY"; | 52 return "ADD_WATCHER"; |
53 case UNOBSERVE_ENTRY: | 53 case REMOVE_WATCHER: |
54 return "UNOBSERVE_ENTRY"; | 54 return "REMOVE_WATCHER"; |
55 case TESTING: | 55 case TESTING: |
56 return "TESTING"; | 56 return "TESTING"; |
57 } | 57 } |
58 NOTREACHED(); | 58 NOTREACHED(); |
59 return ""; | 59 return ""; |
60 } | 60 } |
61 | 61 |
62 RequestManager::RequestManager( | 62 RequestManager::RequestManager( |
63 NotificationManagerInterface* notification_manager) | 63 NotificationManagerInterface* notification_manager) |
64 : notification_manager_(notification_manager), | 64 : notification_manager_(notification_manager), |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 notification_manager_->HideUnresponsiveNotification(request_id); | 250 notification_manager_->HideUnresponsiveNotification(request_id); |
251 | 251 |
252 FOR_EACH_OBSERVER(Observer, observers_, OnRequestDestroyed(request_id)); | 252 FOR_EACH_OBSERVER(Observer, observers_, OnRequestDestroyed(request_id)); |
253 | 253 |
254 TRACE_EVENT_ASYNC_END0( | 254 TRACE_EVENT_ASYNC_END0( |
255 "file_system_provider", "RequestManager::Request", request_id); | 255 "file_system_provider", "RequestManager::Request", request_id); |
256 } | 256 } |
257 | 257 |
258 } // namespace file_system_provider | 258 } // namespace file_system_provider |
259 } // namespace chromeos | 259 } // namespace chromeos |
OLD | NEW |