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

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

Issue 625463002: [fsp] Add support for observing entries and notifying about changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 2 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
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 #include <vector> 10 #include <vector>
(...skipping 21 matching lines...) Expand all
32 CLOSE_FILE, 32 CLOSE_FILE,
33 READ_FILE, 33 READ_FILE,
34 CREATE_DIRECTORY, 34 CREATE_DIRECTORY,
35 DELETE_ENTRY, 35 DELETE_ENTRY,
36 CREATE_FILE, 36 CREATE_FILE,
37 COPY_ENTRY, 37 COPY_ENTRY,
38 MOVE_ENTRY, 38 MOVE_ENTRY,
39 TRUNCATE, 39 TRUNCATE,
40 WRITE_FILE, 40 WRITE_FILE,
41 ABORT, 41 ABORT,
42 OBSERVE_DIRECTORY,
43 UNOBSERVE_ENTRY,
42 TESTING 44 TESTING
43 }; 45 };
44 46
45 // Converts a request type to human-readable format. 47 // Converts a request type to human-readable format.
46 std::string RequestTypeToString(RequestType type); 48 std::string RequestTypeToString(RequestType type);
47 49
48 // Manages requests between the service, async utils and the providing 50 // Manages requests between the service, async utils and the providing
49 // extensions. 51 // extensions.
50 class RequestManager { 52 class RequestManager {
51 public: 53 public:
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 ObserverList<Observer> observers_; 175 ObserverList<Observer> observers_;
174 base::WeakPtrFactory<RequestManager> weak_ptr_factory_; 176 base::WeakPtrFactory<RequestManager> weak_ptr_factory_;
175 177
176 DISALLOW_COPY_AND_ASSIGN(RequestManager); 178 DISALLOW_COPY_AND_ASSIGN(RequestManager);
177 }; 179 };
178 180
179 } // namespace file_system_provider 181 } // namespace file_system_provider
180 } // namespace chromeos 182 } // namespace chromeos
181 183
182 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ 184 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698