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 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/files/file.h" | 13 #include "base/files/file.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "base/timer/timer.h" | 18 #include "base/timer/timer.h" |
19 #include "chrome/browser/chromeos/file_system_provider/notification_manager_inte
rface.h" | 19 #include "chrome/browser/chromeos/file_system_provider/notification_manager_inte
rface.h" |
20 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 20 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
21 #include "chrome/browser/chromeos/file_system_provider/request_value.h" | 21 #include "chrome/browser/chromeos/file_system_provider/request_value.h" |
22 | 22 |
23 namespace chromeos { | 23 namespace chromeos { |
24 namespace file_system_provider { | 24 namespace file_system_provider { |
25 | 25 |
26 // Request type, passed to RequestManager::CreateRequest. For logging purposes. | 26 // Request type, passed to RequestManager::CreateRequest. For logging purposes. |
27 enum RequestType { | 27 enum RequestType { |
28 REQUEST_UNMOUNT, | 28 REQUEST_UNMOUNT, |
29 GET_METADATA, | 29 GET_METADATA, |
| 30 GET_ACTIONS, |
30 READ_DIRECTORY, | 31 READ_DIRECTORY, |
31 OPEN_FILE, | 32 OPEN_FILE, |
32 CLOSE_FILE, | 33 CLOSE_FILE, |
33 READ_FILE, | 34 READ_FILE, |
34 CREATE_DIRECTORY, | 35 CREATE_DIRECTORY, |
35 DELETE_ENTRY, | 36 DELETE_ENTRY, |
36 CREATE_FILE, | 37 CREATE_FILE, |
37 COPY_ENTRY, | 38 COPY_ENTRY, |
38 MOVE_ENTRY, | 39 MOVE_ENTRY, |
39 TRUNCATE, | 40 TRUNCATE, |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 ObserverList<Observer> observers_; | 179 ObserverList<Observer> observers_; |
179 base::WeakPtrFactory<RequestManager> weak_ptr_factory_; | 180 base::WeakPtrFactory<RequestManager> weak_ptr_factory_; |
180 | 181 |
181 DISALLOW_COPY_AND_ASSIGN(RequestManager); | 182 DISALLOW_COPY_AND_ASSIGN(RequestManager); |
182 }; | 183 }; |
183 | 184 |
184 } // namespace file_system_provider | 185 } // namespace file_system_provider |
185 } // namespace chromeos | 186 } // namespace chromeos |
186 | 187 |
187 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ | 188 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ |
OLD | NEW |