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

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

Issue 1151763007: Add the boilerplate for actions to File System Provider API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + fixed a comment. Created 5 years, 6 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>
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698