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

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

Issue 12585003: drive: Add showroot=true to WAPI feed URLs and ignore "no parent" entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, revert version-up. Created 7 years, 9 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_RESOURCE_METADATA_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 void GetEntryInfoPairByPathsAfterGetSecond( 340 void GetEntryInfoPairByPathsAfterGetSecond(
341 const base::FilePath& second_path, 341 const base::FilePath& second_path,
342 const GetEntryInfoPairCallback& callback, 342 const GetEntryInfoPairCallback& callback,
343 scoped_ptr<EntryInfoPairResult> result, 343 scoped_ptr<EntryInfoPairResult> result,
344 DriveFileError error, 344 DriveFileError error,
345 scoped_ptr<DriveEntryProto> entry_proto); 345 scoped_ptr<DriveEntryProto> entry_proto);
346 346
347 // Searches for |file_path| synchronously. 347 // Searches for |file_path| synchronously.
348 DriveEntry* FindEntryByPathSync(const base::FilePath& file_path); 348 DriveEntry* FindEntryByPathSync(const base::FilePath& file_path);
349 349
350 // Helper function to get a parent directory given |parent_resource_id|. 350 // Helper function to get a parent directory given |parent_resource_id|.
hashimoto 2013/03/12 07:55:17 nit: Please fix the comment.
Haruki Sato 2013/03/12 08:17:23 Done. thanks.
351 // Returns root if |parent_resource_id| is empty. Returns NULL if 351 // Returns root if |parent_resource_id| is empty. Returns NULL if
352 // |parent_resource_id| is not empty and the corresponding entry is not a 352 // |parent_resource_id| is not empty and the corresponding entry is not a
353 // directory. 353 // directory.
354 DriveDirectory* GetParent(const std::string& parent_resource_id); 354 DriveDirectory* GetDirectory(const std::string& parent_resource_id);
hashimoto 2013/03/12 07:55:17 nit: s/parent_resource_id/resource_id/?
Haruki Sato 2013/03/12 08:17:23 Done.
355 355
356 // Returns virtual file path of the entry. 356 // Returns virtual file path of the entry.
357 base::FilePath GetFilePath(const DriveEntryProto& entry); 357 base::FilePath GetFilePath(const DriveEntryProto& entry);
358 358
359 // Recursively extracts the paths set of all sub-directories. 359 // Recursively extracts the paths set of all sub-directories.
360 void GetDescendantDirectoryPaths(const DriveDirectory& directory, 360 void GetDescendantDirectoryPaths(const DriveDirectory& directory,
361 std::set<base::FilePath>* child_directories); 361 std::set<base::FilePath>* child_directories);
362 362
363 // Private data members. 363 // Private data members.
364 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 364 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
(...skipping 10 matching lines...) Expand all
375 // This should remain the last member so it'll be destroyed first and 375 // This should remain the last member so it'll be destroyed first and
376 // invalidate its weak pointers before other members are destroyed. 376 // invalidate its weak pointers before other members are destroyed.
377 base::WeakPtrFactory<DriveResourceMetadata> weak_ptr_factory_; 377 base::WeakPtrFactory<DriveResourceMetadata> weak_ptr_factory_;
378 378
379 DISALLOW_COPY_AND_ASSIGN(DriveResourceMetadata); 379 DISALLOW_COPY_AND_ASSIGN(DriveResourceMetadata);
380 }; 380 };
381 381
382 } // namespace drive 382 } // namespace drive
383 383
384 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_ 384 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698