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

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

Issue 845083005: [fsp] Simplify aborting logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a comment. Created 5 years, 11 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_PROVIDED_FILE_SYSTEM_INTERF ACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INTERF ACE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 std::string thumbnail; 50 std::string thumbnail;
51 51
52 private: 52 private:
53 DISALLOW_COPY_AND_ASSIGN(EntryMetadata); 53 DISALLOW_COPY_AND_ASSIGN(EntryMetadata);
54 }; 54 };
55 55
56 // Interface for a provided file system. Acts as a proxy between providers 56 // Interface for a provided file system. Acts as a proxy between providers
57 // and clients. All of the request methods return an abort callback in order to 57 // and clients. All of the request methods return an abort callback in order to
58 // terminate it while running. They must be called on the same thread as the 58 // terminate it while running. They must be called on the same thread as the
59 // request methods. The cancellation callback may be null if the operation 59 // request methods. The cancellation callback may be null if the operation
60 // fails synchronously. 60 // fails synchronously. It must not be called once the operation is completed
61 // with either a success or an error.
61 class ProvidedFileSystemInterface { 62 class ProvidedFileSystemInterface {
62 public: 63 public:
63 struct Change; 64 struct Change;
64 65
65 // Mode of opening a file. Used by OpenFile(). 66 // Mode of opening a file. Used by OpenFile().
66 enum OpenFileMode { OPEN_FILE_MODE_READ, OPEN_FILE_MODE_WRITE }; 67 enum OpenFileMode { OPEN_FILE_MODE_READ, OPEN_FILE_MODE_WRITE };
67 68
68 // Extra fields to be fetched with metadata. 69 // Extra fields to be fetched with metadata.
69 enum MetadataField { 70 enum MetadataField {
70 METADATA_FIELD_DEFAULT = 0, 71 METADATA_FIELD_DEFAULT = 0,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) = 0; 225 virtual void RemoveObserver(ProvidedFileSystemObserver* observer) = 0;
225 226
226 // Returns a weak pointer to this object. 227 // Returns a weak pointer to this object.
227 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; 228 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0;
228 }; 229 };
229 230
230 } // namespace file_system_provider 231 } // namespace file_system_provider
231 } // namespace chromeos 232 } // namespace chromeos
232 233
233 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_ 234 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698