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/files/file.h" | 7 #include "base/files/file.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
10 #include "chrome/browser/extensions/window_controller_list.h" | 10 #include "chrome/browser/extensions/window_controller_list.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 const int kDefaultTimeout = 10; | 23 const int kDefaultTimeout = 10; |
24 | 24 |
25 } // namespace | 25 } // namespace |
26 | 26 |
27 std::string RequestTypeToString(RequestType type) { | 27 std::string RequestTypeToString(RequestType type) { |
28 switch (type) { | 28 switch (type) { |
29 case REQUEST_UNMOUNT: | 29 case REQUEST_UNMOUNT: |
30 return "REQUEST_UNMOUNT"; | 30 return "REQUEST_UNMOUNT"; |
31 case GET_METADATA: | 31 case GET_METADATA: |
32 return "GET_METADATA"; | 32 return "GET_METADATA"; |
| 33 case GET_ACTIONS: |
| 34 return "GET_ACTIONS"; |
33 case READ_DIRECTORY: | 35 case READ_DIRECTORY: |
34 return "READ_DIRECTORY"; | 36 return "READ_DIRECTORY"; |
35 case OPEN_FILE: | 37 case OPEN_FILE: |
36 return "OPEN_FILE"; | 38 return "OPEN_FILE"; |
37 case CLOSE_FILE: | 39 case CLOSE_FILE: |
38 return "CLOSE_FILE"; | 40 return "CLOSE_FILE"; |
39 case READ_FILE: | 41 case READ_FILE: |
40 return "READ_FILE"; | 42 return "READ_FILE"; |
41 case CREATE_DIRECTORY: | 43 case CREATE_DIRECTORY: |
42 return "CREATE_DIRECTORY"; | 44 return "CREATE_DIRECTORY"; |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 notification_manager_->HideUnresponsiveNotification(request_id); | 299 notification_manager_->HideUnresponsiveNotification(request_id); |
298 | 300 |
299 FOR_EACH_OBSERVER(Observer, observers_, OnRequestDestroyed(request_id)); | 301 FOR_EACH_OBSERVER(Observer, observers_, OnRequestDestroyed(request_id)); |
300 | 302 |
301 TRACE_EVENT_ASYNC_END0( | 303 TRACE_EVENT_ASYNC_END0( |
302 "file_system_provider", "RequestManager::Request", request_id); | 304 "file_system_provider", "RequestManager::Request", request_id); |
303 } | 305 } |
304 | 306 |
305 } // namespace file_system_provider | 307 } // namespace file_system_provider |
306 } // namespace chromeos | 308 } // namespace chromeos |
OLD | NEW |