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

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

Issue 15915008: drive: Stop using /dev/null to store an empty file to the cache from CreateFileOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_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 24 matching lines...) Expand all
35 // The extension for dirty files. The file names look like 35 // The extension for dirty files. The file names look like
36 // "<resource-id>.local". 36 // "<resource-id>.local".
37 const base::FilePath::CharType kLocallyModifiedFileExtension[] = 37 const base::FilePath::CharType kLocallyModifiedFileExtension[] =
38 FILE_PATH_LITERAL("local"); 38 FILE_PATH_LITERAL("local");
39 // The extension for mounted files. The file names look like 39 // The extension for mounted files. The file names look like
40 // "<resource-id>.<md5>.mounted". 40 // "<resource-id>.<md5>.mounted".
41 const base::FilePath::CharType kMountedArchiveFileExtension[] = 41 const base::FilePath::CharType kMountedArchiveFileExtension[] =
42 FILE_PATH_LITERAL("mounted"); 42 FILE_PATH_LITERAL("mounted");
43 const base::FilePath::CharType kWildCard[] = 43 const base::FilePath::CharType kWildCard[] =
44 FILE_PATH_LITERAL("*"); 44 FILE_PATH_LITERAL("*");
45 // The path is used for creating a symlink in "pinned" directory for a file
46 // which is not yet fetched.
47 const base::FilePath::CharType kSymLinkToDevNull[] =
48 FILE_PATH_LITERAL("/dev/null");
49 45
50 // Special resource IDs introduced to manage pseudo directory tree locally. 46 // Special resource IDs introduced to manage pseudo directory tree locally.
51 // These strings are supposed to be different from any resource ID used on the 47 // These strings are supposed to be different from any resource ID used on the
52 // server, and are never sent to the server. Practical resource IDs used so far 48 // server, and are never sent to the server. Practical resource IDs used so far
53 // have only alphabets/numbers ([a-zA-Z0-9]) and ':'. 49 // have only alphabets/numbers ([a-zA-Z0-9]) and ':'.
54 // Hence '<' and '>' around the directory name have been added to make them 50 // Hence '<' and '>' around the directory name have been added to make them
55 // different from normal server-side IDs. 51 // different from normal server-side IDs.
56 const char kDriveGrandRootSpecialResourceId[] = "<drive>"; 52 const char kDriveGrandRootSpecialResourceId[] = "<drive>";
57 53
58 const char kDriveOtherDirSpecialResourceId[] = "<other>"; 54 const char kDriveOtherDirSpecialResourceId[] = "<other>";
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // Reads URL from a GDoc file. 230 // Reads URL from a GDoc file.
235 GURL ReadUrlFromGDocFile(const base::FilePath& file_path); 231 GURL ReadUrlFromGDocFile(const base::FilePath& file_path);
236 232
237 // Reads resource ID from a GDoc file. 233 // Reads resource ID from a GDoc file.
238 std::string ReadResourceIdFromGDocFile(const base::FilePath& file_path); 234 std::string ReadResourceIdFromGDocFile(const base::FilePath& file_path);
239 235
240 } // namespace util 236 } // namespace util
241 } // namespace drive 237 } // namespace drive
242 238
243 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UTIL_H_ 239 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/file_system/create_file_operation.cc ('k') | chrome/browser/chromeos/drive/job_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698