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 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 // Request type, passed to RequestManager::CreateRequest. For logging purposes. | 25 // Request type, passed to RequestManager::CreateRequest. For logging purposes. |
26 enum RequestType { | 26 enum RequestType { |
27 REQUEST_UNMOUNT, | 27 REQUEST_UNMOUNT, |
28 GET_METADATA, | 28 GET_METADATA, |
29 READ_DIRECTORY, | 29 READ_DIRECTORY, |
30 OPEN_FILE, | 30 OPEN_FILE, |
31 CLOSE_FILE, | 31 CLOSE_FILE, |
32 READ_FILE, | 32 READ_FILE, |
33 CREATE_DIRECTORY, | 33 CREATE_DIRECTORY, |
34 DELETE_ENTRY, | 34 DELETE_ENTRY, |
| 35 CREATE_FILE, |
35 TESTING | 36 TESTING |
36 }; | 37 }; |
37 | 38 |
38 // Converts a request type to human-readable format. | 39 // Converts a request type to human-readable format. |
39 std::string RequestTypeToString(RequestType type); | 40 std::string RequestTypeToString(RequestType type); |
40 | 41 |
41 // Manages requests between the service, async utils and the providing | 42 // Manages requests between the service, async utils and the providing |
42 // extensions. | 43 // extensions. |
43 class RequestManager { | 44 class RequestManager { |
44 public: | 45 public: |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 base::WeakPtrFactory<RequestManager> weak_ptr_factory_; | 168 base::WeakPtrFactory<RequestManager> weak_ptr_factory_; |
168 ObserverList<Observer> observers_; | 169 ObserverList<Observer> observers_; |
169 | 170 |
170 DISALLOW_COPY_AND_ASSIGN(RequestManager); | 171 DISALLOW_COPY_AND_ASSIGN(RequestManager); |
171 }; | 172 }; |
172 | 173 |
173 } // namespace file_system_provider | 174 } // namespace file_system_provider |
174 } // namespace chromeos | 175 } // namespace chromeos |
175 | 176 |
176 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ | 177 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ |
OLD | NEW |