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

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: fix browser_tests. 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 void GetEntryInfoPairByPathsAfterGetSecond( 358 void GetEntryInfoPairByPathsAfterGetSecond(
359 const base::FilePath& second_path, 359 const base::FilePath& second_path,
360 const GetEntryInfoPairCallback& callback, 360 const GetEntryInfoPairCallback& callback,
361 scoped_ptr<EntryInfoPairResult> result, 361 scoped_ptr<EntryInfoPairResult> result,
362 DriveFileError error, 362 DriveFileError error,
363 scoped_ptr<DriveEntryProto> entry_proto); 363 scoped_ptr<DriveEntryProto> entry_proto);
364 364
365 // Searches for |file_path| synchronously. 365 // Searches for |file_path| synchronously.
366 DriveEntry* FindEntryByPathSync(const base::FilePath& file_path); 366 DriveEntry* FindEntryByPathSync(const base::FilePath& file_path);
367 367
368 // Helper function to get a parent directory given |parent_resource_id|. 368 // Helper function to get a directory given |resource_id|. |resource_id| can
369 // Returns root if |parent_resource_id| is empty. Returns NULL if 369 // not be empty. Returns NULL if it finds no corresponding entry, or the
370 // |parent_resource_id| is not empty and the corresponding entry is not a 370 // corresponding entry is not a directory.
371 // directory. 371 DriveDirectory* GetDirectory(const std::string& resource_id);
372 DriveDirectory* GetParent(const std::string& parent_resource_id);
373 372
374 // Returns virtual file path of the entry. 373 // Returns virtual file path of the entry.
375 base::FilePath GetFilePath(const DriveEntryProto& entry); 374 base::FilePath GetFilePath(const DriveEntryProto& entry);
376 375
377 // Recursively extracts the paths set of all sub-directories. 376 // Recursively extracts the paths set of all sub-directories.
378 void GetDescendantDirectoryPaths(const DriveDirectory& directory, 377 void GetDescendantDirectoryPaths(const DriveDirectory& directory,
379 std::set<base::FilePath>* child_directories); 378 std::set<base::FilePath>* child_directories);
380 379
381 // Private data members. 380 // Private data members.
382 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 381 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
(...skipping 12 matching lines...) Expand all
395 // This should remain the last member so it'll be destroyed first and 394 // This should remain the last member so it'll be destroyed first and
396 // invalidate its weak pointers before other members are destroyed. 395 // invalidate its weak pointers before other members are destroyed.
397 base::WeakPtrFactory<DriveResourceMetadata> weak_ptr_factory_; 396 base::WeakPtrFactory<DriveResourceMetadata> weak_ptr_factory_;
398 397
399 DISALLOW_COPY_AND_ASSIGN(DriveResourceMetadata); 398 DISALLOW_COPY_AND_ASSIGN(DriveResourceMetadata);
400 }; 399 };
401 400
402 } // namespace drive 401 } // namespace drive
403 402
404 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_ 403 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system_unittest.cc ('k') | chrome/browser/chromeos/drive/drive_resource_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698