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

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

Issue 16107004: drive: Stop returning FilePath from GetResourceEntryById (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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_FILE_SYSTEM_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 base::SequencedTaskRunner* blocking_task_runner); 57 base::SequencedTaskRunner* blocking_task_runner);
58 virtual ~FileSystem(); 58 virtual ~FileSystem();
59 59
60 // FileSystemInterface overrides. 60 // FileSystemInterface overrides.
61 virtual void Initialize() OVERRIDE; 61 virtual void Initialize() OVERRIDE;
62 virtual void AddObserver(FileSystemObserver* observer) OVERRIDE; 62 virtual void AddObserver(FileSystemObserver* observer) OVERRIDE;
63 virtual void RemoveObserver(FileSystemObserver* observer) OVERRIDE; 63 virtual void RemoveObserver(FileSystemObserver* observer) OVERRIDE;
64 virtual void CheckForUpdates() OVERRIDE; 64 virtual void CheckForUpdates() OVERRIDE;
65 virtual void GetResourceEntryById( 65 virtual void GetResourceEntryById(
66 const std::string& resource_id, 66 const std::string& resource_id,
67 const GetResourceEntryWithFilePathCallback& callback) OVERRIDE; 67 const GetResourceEntryCallback& callback) OVERRIDE;
68 virtual void Search(const std::string& search_query, 68 virtual void Search(const std::string& search_query,
69 const GURL& next_feed, 69 const GURL& next_feed,
70 const SearchCallback& callback) OVERRIDE; 70 const SearchCallback& callback) OVERRIDE;
71 virtual void SearchMetadata(const std::string& query, 71 virtual void SearchMetadata(const std::string& query,
72 int options, 72 int options,
73 int at_most_num_matches, 73 int at_most_num_matches,
74 const SearchMetadataCallback& callback) OVERRIDE; 74 const SearchMetadataCallback& callback) OVERRIDE;
75 virtual void TransferFileFromRemoteToLocal( 75 virtual void TransferFileFromRemoteToLocal(
76 const base::FilePath& remote_src_file_path, 76 const base::FilePath& remote_src_file_path,
77 const base::FilePath& local_dest_file_path, 77 const base::FilePath& local_dest_file_path,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 FileError error); 288 FileError error);
289 void ReadDirectoryByPathAfterRead( 289 void ReadDirectoryByPathAfterRead(
290 const ReadDirectoryWithSettingCallback& callback, 290 const ReadDirectoryWithSettingCallback& callback,
291 FileError error, 291 FileError error,
292 scoped_ptr<ResourceEntryVector> entries); 292 scoped_ptr<ResourceEntryVector> entries);
293 293
294 // Part of GetResourceEntryById(). Called after 294 // Part of GetResourceEntryById(). Called after
295 // ResourceMetadata::GetResourceEntryById() is complete. 295 // ResourceMetadata::GetResourceEntryById() is complete.
296 // |callback| must not be null. 296 // |callback| must not be null.
297 void GetResourceEntryByIdAfterGetEntry( 297 void GetResourceEntryByIdAfterGetEntry(
298 const GetResourceEntryWithFilePathCallback& callback, 298 const GetResourceEntryCallback& callback,
299 FileError error, 299 FileError error,
300 const base::FilePath& file_path,
301 scoped_ptr<ResourceEntry> entry); 300 scoped_ptr<ResourceEntry> entry);
302 301
303 // Part of RefreshDirectory(). Called after 302 // Part of RefreshDirectory(). Called after
304 // GetResourceEntryByPath() is complete. 303 // GetResourceEntryByPath() is complete.
305 void RefreshDirectoryAfterGetResourceEntry( 304 void RefreshDirectoryAfterGetResourceEntry(
306 const base::FilePath& directory_path, 305 const base::FilePath& directory_path,
307 const FileOperationCallback& callback, 306 const FileOperationCallback& callback,
308 FileError error, 307 FileError error,
309 scoped_ptr<ResourceEntry> entry); 308 scoped_ptr<ResourceEntry> entry);
310 309
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // Note: This should remain the last member so it'll be destroyed and 374 // Note: This should remain the last member so it'll be destroyed and
376 // invalidate the weak pointers before any other members are destroyed. 375 // invalidate the weak pointers before any other members are destroyed.
377 base::WeakPtrFactory<FileSystem> weak_ptr_factory_; 376 base::WeakPtrFactory<FileSystem> weak_ptr_factory_;
378 377
379 DISALLOW_COPY_AND_ASSIGN(FileSystem); 378 DISALLOW_COPY_AND_ASSIGN(FileSystem);
380 }; 379 };
381 380
382 } // namespace drive 381 } // namespace drive
383 382
384 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_ 383 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/fake_file_system_unittest.cc ('k') | chrome/browser/chromeos/drive/file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698