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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/provided_file_system_interface.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, 4 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const base::FilePath& target_path, 129 const base::FilePath& target_path,
130 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; 130 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0;
131 131
132 // Requests moving an entry (recursively in case of a directory) within the 132 // Requests moving an entry (recursively in case of a directory) within the
133 // same file system. 133 // same file system.
134 virtual void MoveEntry( 134 virtual void MoveEntry(
135 const base::FilePath& source_path, 135 const base::FilePath& source_path,
136 const base::FilePath& target_path, 136 const base::FilePath& target_path,
137 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0; 137 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0;
138 138
139 // Requests truncating a file to the desired length.
140 virtual void Truncate(
141 const base::FilePath& file_path,
142 int64 length,
143 const fileapi::AsyncFileUtil::StatusCallback& callback) = 0;
144
139 // Returns a provided file system info for this file system. 145 // Returns a provided file system info for this file system.
140 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0; 146 virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const = 0;
141 147
142 // Returns a request manager for the file system. 148 // Returns a request manager for the file system.
143 virtual RequestManager* GetRequestManager() = 0; 149 virtual RequestManager* GetRequestManager() = 0;
144 150
145 // Returns a weak pointer to this object. 151 // Returns a weak pointer to this object.
146 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0; 152 virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() = 0;
147 }; 153 };
148 154
149 } // namespace file_system_provider 155 } // namespace file_system_provider
150 } // namespace chromeos 156 } // namespace chromeos
151 157
152 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_ 158 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_PROVIDED_FILE_SYSTEM_INT ERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698