Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: chrome/browser/chromeos/file_system_provider/request_manager.h

Issue 417983002: [fsp] Add support for truncating files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 17 matching lines...) Expand all
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 CREATE_FILE,
36 COPY_ENTRY, 36 COPY_ENTRY,
37 MOVE_ENTRY, 37 MOVE_ENTRY,
38 TRUNCATE,
38 TESTING 39 TESTING
39 }; 40 };
40 41
41 // Converts a request type to human-readable format. 42 // Converts a request type to human-readable format.
42 std::string RequestTypeToString(RequestType type); 43 std::string RequestTypeToString(RequestType type);
43 44
44 // Manages requests between the service, async utils and the providing 45 // Manages requests between the service, async utils and the providing
45 // extensions. 46 // extensions.
46 class RequestManager { 47 class RequestManager {
47 public: 48 public:
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 base::WeakPtrFactory<RequestManager> weak_ptr_factory_; 171 base::WeakPtrFactory<RequestManager> weak_ptr_factory_;
171 ObserverList<Observer> observers_; 172 ObserverList<Observer> observers_;
172 173
173 DISALLOW_COPY_AND_ASSIGN(RequestManager); 174 DISALLOW_COPY_AND_ASSIGN(RequestManager);
174 }; 175 };
175 176
176 } // namespace file_system_provider 177 } // namespace file_system_provider
177 } // namespace chromeos 178 } // namespace chromeos
178 179
179 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ 180 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698