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

Side by Side Diff: chrome/browser/chromeos/drive/drive_file_system_interface.h

Issue 14348016: chromeos: Add DriveFileSystem::Pin/Unpin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use GetEntryInfoByPathSync Created 7 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // Creates a file at |file_path|. If the flag |is_exclusive| is true, an 275 // Creates a file at |file_path|. If the flag |is_exclusive| is true, an
276 // error is raised when a file already exists at the path. It is 276 // error is raised when a file already exists at the path. It is
277 // an error if a directory or a hosted document is already present at the 277 // an error if a directory or a hosted document is already present at the
278 // path, or the parent directory of the path is not present yet. 278 // path, or the parent directory of the path is not present yet.
279 // 279 //
280 // |callback| must not be null. 280 // |callback| must not be null.
281 virtual void CreateFile(const base::FilePath& file_path, 281 virtual void CreateFile(const base::FilePath& file_path,
282 bool is_exclusive, 282 bool is_exclusive,
283 const FileOperationCallback& callback) = 0; 283 const FileOperationCallback& callback) = 0;
284 284
285 // Pins a file at |file_path|.
286 //
287 // |callback| must not be null.
288 virtual void Pin(const base::FilePath& file_path,
289 const FileOperationCallback& callback) = 0;
290
291 // Unpins a file at |file_path|.
292 //
293 // |callback| must not be null.
294 virtual void Unpin(const base::FilePath& file_path,
295 const FileOperationCallback& callback) = 0;
296
285 // Gets |file_path| from the file system. The file entry represented by 297 // Gets |file_path| from the file system. The file entry represented by
286 // |file_path| needs to be present in in-memory representation of the file 298 // |file_path| needs to be present in in-memory representation of the file
287 // system in order to be retrieved. If the file is not cached, the file 299 // system in order to be retrieved. If the file is not cached, the file
288 // will be downloaded through GData API or Drive V2 API. 300 // will be downloaded through GData API or Drive V2 API.
289 // 301 //
290 // |callback| must not be null. 302 // |callback| must not be null.
291 virtual void GetFileByPath(const base::FilePath& file_path, 303 virtual void GetFileByPath(const base::FilePath& file_path,
292 const GetFileCallback& callback) = 0; 304 const GetFileCallback& callback) = 0;
293 305
294 // Gets a file by the given |resource_id| from the Drive server. Used for 306 // Gets a file by the given |resource_id| from the Drive server. Used for
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 virtual void GetMetadata( 432 virtual void GetMetadata(
421 const GetFilesystemMetadataCallback& callback) = 0; 433 const GetFilesystemMetadataCallback& callback) = 0;
422 434
423 // Reloads the file system feeds from the server. 435 // Reloads the file system feeds from the server.
424 virtual void Reload() = 0; 436 virtual void Reload() = 0;
425 }; 437 };
426 438
427 } // namespace drive 439 } // namespace drive
428 440
429 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_ 441 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system.cc ('k') | chrome/browser/chromeos/drive/drive_file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698