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

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: Update unittests. 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 HOSTED_DOCUMENT, 45 HOSTED_DOCUMENT,
46 }; 46 };
47 47
48 // The root directory name used for the Google Drive file system tree. The 48 // The root directory name used for the Google Drive file system tree. The
49 // name is used in URLs for the file manager, hence user-visible. 49 // name is used in URLs for the file manager, hence user-visible.
50 const base::FilePath::CharType kDriveRootDirectory[] = 50 const base::FilePath::CharType kDriveRootDirectory[] =
51 FILE_PATH_LITERAL("drive"); 51 FILE_PATH_LITERAL("drive");
52 52
53 // This should be incremented when incompatibility change is made in 53 // This should be incremented when incompatibility change is made in
54 // drive.proto. 54 // drive.proto.
55 const int32 kProtoVersion = 2; 55 const int32 kProtoVersion = 3;
kinaba 2013/03/11 09:22:38 Do we need to trash the old protos at this point?
Haruki Sato 2013/03/11 14:15:35 I think yes. They are added to the root, aren't th
56 56
57 // Callback similar to FileOperationCallback but with a given |file_path|. 57 // Callback similar to FileOperationCallback but with a given |file_path|.
58 // Used for operations that change a file path like moving files. 58 // Used for operations that change a file path like moving files.
59 typedef base::Callback<void(DriveFileError error, 59 typedef base::Callback<void(DriveFileError error,
60 const base::FilePath& file_path)> 60 const base::FilePath& file_path)>
61 FileMoveCallback; 61 FileMoveCallback;
62 62
63 // Used to get entry info from the file system. 63 // Used to get entry info from the file system.
64 // If |error| is not DRIVE_FILE_OK, |entry_info| is set to NULL. 64 // If |error| is not DRIVE_FILE_OK, |entry_info| is set to NULL.
65 typedef base::Callback<void(DriveFileError error, 65 typedef base::Callback<void(DriveFileError error,
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // This should remain the last member so it'll be destroyed first and 352 // This should remain the last member so it'll be destroyed first and
353 // invalidate its weak pointers before other members are destroyed. 353 // invalidate its weak pointers before other members are destroyed.
354 base::WeakPtrFactory<DriveResourceMetadata> weak_ptr_factory_; 354 base::WeakPtrFactory<DriveResourceMetadata> weak_ptr_factory_;
355 355
356 DISALLOW_COPY_AND_ASSIGN(DriveResourceMetadata); 356 DISALLOW_COPY_AND_ASSIGN(DriveResourceMetadata);
357 }; 357 };
358 358
359 } // namespace drive 359 } // namespace drive
360 360
361 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_ 361 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698