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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_file_system_interface.h

Issue 10828083: gdata: Add GDataDirectoryService::AddEntryToDirectory() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 (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_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 struct SearchResultInfo { 27 struct SearchResultInfo {
28 SearchResultInfo(const FilePath& in_path, bool in_is_directory) 28 SearchResultInfo(const FilePath& in_path, bool in_is_directory)
29 : path(in_path), 29 : path(in_path),
30 is_directory(in_is_directory) { 30 is_directory(in_is_directory) {
31 } 31 }
32 32
33 FilePath path; 33 FilePath path;
34 bool is_directory; 34 bool is_directory;
35 }; 35 };
36 36
37 // Used for file operations like removing files.
38 typedef base::Callback<void(GDataFileError error)>
39 FileOperationCallback;
40
41 // Used to get files from the file system. 37 // Used to get files from the file system.
42 typedef base::Callback<void(GDataFileError error, 38 typedef base::Callback<void(GDataFileError error,
43 const FilePath& file_path, 39 const FilePath& file_path,
44 const std::string& mime_type, 40 const std::string& mime_type,
45 GDataFileType file_type)> GetFileCallback; 41 GDataFileType file_type)> GetFileCallback;
46 42
47 // Used to get entry info from the file system, with the gdata file path. 43 // Used to get entry info from the file system, with the gdata file path.
48 // If |error| is not PLATFORM_FILE_OK, |file_info| is set to NULL. 44 // If |error| is not PLATFORM_FILE_OK, |file_info| is set to NULL.
49 // 45 //
50 // |gdata_file_path| parameter is provided as GDataEntryProto does not contain 46 // |gdata_file_path| parameter is provided as GDataEntryProto does not contain
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 const FilePath& virtual_dir_path, 341 const FilePath& virtual_dir_path,
346 scoped_ptr<DocumentEntry> entry, 342 scoped_ptr<DocumentEntry> entry,
347 const FilePath& file_content_path, 343 const FilePath& file_content_path,
348 GDataCache::FileOperationType cache_operation, 344 GDataCache::FileOperationType cache_operation,
349 const base::Closure& callback) = 0; 345 const base::Closure& callback) = 0;
350 }; 346 };
351 347
352 } // namespace gdata 348 } // namespace gdata
353 349
354 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ 350 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698