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

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

Issue 10815008: gdata: Make GDataFileSystem::ReadDirectoryByPath() much more efficient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove a blank line Created 8 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 (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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 scoped_ptr<GDataEntryProto> file_proto)> 55 scoped_ptr<GDataEntryProto> file_proto)>
56 GetEntryInfoWithFilePathCallback; 56 GetEntryInfoWithFilePathCallback;
57 57
58 // Used to get entry info from the file system. 58 // Used to get entry info from the file system.
59 // If |error| is not PLATFORM_FILE_OK, |entry_info| is set to NULL. 59 // If |error| is not PLATFORM_FILE_OK, |entry_info| is set to NULL.
60 typedef base::Callback<void(GDataFileError error, 60 typedef base::Callback<void(GDataFileError error,
61 scoped_ptr<GDataEntryProto> entry_proto)> 61 scoped_ptr<GDataEntryProto> entry_proto)>
62 GetEntryInfoCallback; 62 GetEntryInfoCallback;
63 63
64 // Used to read a directory from the file system. 64 // Used to read a directory from the file system.
65 // If |error| is not PLATFORM_FILE_OK, |directory_info| is set to NULL. 65 // If |error| is not PLATFORM_FILE_OK, |entries| is set to NULL.
66 // |entries| are contents, both files and directories, of the directory.
67 typedef std::vector<GDataEntryProto> GDataEntryProtoVector;
66 typedef base::Callback<void(GDataFileError error, 68 typedef base::Callback<void(GDataFileError error,
67 bool hide_hosted_documents, 69 bool hide_hosted_documents,
68 scoped_ptr<GDataDirectoryProto> directory_proto)> 70 scoped_ptr<GDataEntryProtoVector> entries)>
69 ReadDirectoryCallback; 71 ReadDirectoryCallback;
70 72
71 // Used to get drive content search results. 73 // Used to get drive content search results.
72 // If |error| is not PLATFORM_FILE_OK, |result_paths| is empty. 74 // If |error| is not PLATFORM_FILE_OK, |result_paths| is empty.
73 typedef base::Callback<void( 75 typedef base::Callback<void(
74 GDataFileError error, 76 GDataFileError error,
75 scoped_ptr<std::vector<SearchResultInfo> > result_paths)> SearchCallback; 77 scoped_ptr<std::vector<SearchResultInfo> > result_paths)> SearchCallback;
76 78
77 // Used to open files from the file system. |file_path| is the path on the local 79 // Used to open files from the file system. |file_path| is the path on the local
78 // file system for the opened file. 80 // file system for the opened file.
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 const FilePath& virtual_dir_path, 345 const FilePath& virtual_dir_path,
344 scoped_ptr<DocumentEntry> entry, 346 scoped_ptr<DocumentEntry> entry,
345 const FilePath& file_content_path, 347 const FilePath& file_content_path,
346 GDataCache::FileOperationType cache_operation, 348 GDataCache::FileOperationType cache_operation,
347 const base::Closure& callback) = 0; 349 const base::Closure& callback) = 0;
348 }; 350 };
349 351
350 } // namespace gdata 352 } // namespace gdata
351 353
352 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_ 354 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_FILE_SYSTEM_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698