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

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

Issue 13149003: drive: Use "/drive/root" namespace and fix Files app and tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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_FILE_SYSTEM_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // are used in URLs for the file manager, hence user-visible. 52 // are used in URLs for the file manager, hence user-visible.
53 const base::FilePath::CharType kDriveGrandRootDirName[] = 53 const base::FilePath::CharType kDriveGrandRootDirName[] =
54 FILE_PATH_LITERAL("drive"); 54 FILE_PATH_LITERAL("drive");
55 55
56 const base::FilePath::CharType kDriveMyDriveRootDirName[] = 56 const base::FilePath::CharType kDriveMyDriveRootDirName[] =
57 FILE_PATH_LITERAL("root"); 57 FILE_PATH_LITERAL("root");
58 58
59 const base::FilePath::CharType kDriveOtherDirName[] = 59 const base::FilePath::CharType kDriveOtherDirName[] =
60 FILE_PATH_LITERAL("other"); 60 FILE_PATH_LITERAL("other");
61 61
62 // TODO(haruki): Change this to "drive/root" in order to use separate namespace.
63 // http://crbug.com/174233
64 const base::FilePath::CharType kDriveMyDriveRootPath[] = 62 const base::FilePath::CharType kDriveMyDriveRootPath[] =
65 FILE_PATH_LITERAL("drive"); 63 FILE_PATH_LITERAL("drive/root");
66 64
67 const base::FilePath::CharType kDriveOtherDirPath[] = 65 const base::FilePath::CharType kDriveOtherDirPath[] =
68 FILE_PATH_LITERAL("drive/other"); 66 FILE_PATH_LITERAL("drive/other");
69 67
70 // Returns the path of the top root of the pseudo tree. 68 // Returns the path of the top root of the pseudo tree.
71 const base::FilePath& GetDriveGrandRootPath(); 69 const base::FilePath& GetDriveGrandRootPath();
72 70
73 // Returns the path of the directory representing "My Drive". 71 // Returns the path of the directory representing "My Drive".
74 const base::FilePath& GetDriveMyDriveRootPath(); 72 const base::FilePath& GetDriveMyDriveRootPath();
75 73
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 void operator()(T* object) const { 194 void operator()(T* object) const {
197 if (object) 195 if (object)
198 object->Destroy(); 196 object->Destroy();
199 } 197 }
200 }; 198 };
201 199
202 } // namespace util 200 } // namespace util
203 } // namespace drive 201 } // namespace drive
204 202
205 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_ 203 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698