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

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

Issue 375543002: [fsp] Add support for deleting entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased + cleaned up. 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_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 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // Requests creating a directory. If |recursive| is passed, then all non 103 // Requests creating a directory. If |recursive| is passed, then all non
104 // existing directories on the path will be created. If |exclusive| is true, 104 // existing directories on the path will be created. If |exclusive| is true,
105 // then creating the directory will fail, if it already exists. 105 // then creating the directory will fail, if it already exists.
106 virtual void CreateDirectory( 106 virtual void CreateDirectory(
107 const base::FilePath& directory_path, 107 const base::FilePath& directory_path,
108 bool exclusive, 108 bool exclusive,
109 bool recursive, 109 bool recursive,
110 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; 110 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0;
111 111
112 // Requests deleting a directory. If |recursive| is passed and the entry is
113 // a directory, then all contents of it (recursively) will be deleted too.
114 virtual void DeleteEntry(
115 const base::FilePath& entry_path,
116 bool recursive,
117 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0;
118
112 // Returns a provided file system info for this file system. 119 // Returns a provided file system info for this file system.
113 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; 120 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0;
114 121
115 // Returns a request manager for the file system. 122 // Returns a request manager for the file system.
116 virtual RequestManager* GetRequestManager() = 0; 123 virtual RequestManager* GetRequestManager() = 0;
117 124
118 // Returns a weak pointer to this object. 125 // Returns a weak pointer to this object.
119 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; 126 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0;
120 }; 127 };
121 128
122 } // namespace file_system_provider 129 } // namespace file_system_provider
123 } // namespace chromeos 130 } // namespace chromeos
124 131
125 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_ 132 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698