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

Side by Side Diff: chrome/common/chrome_paths.h

Issue 10241007: Linux: Use the same safe downloads logic as Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix autocompletion failure Created 8 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
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/common/chrome_paths.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_CHROME_PATHS_H__ 5 #ifndef CHROME_COMMON_CHROME_PATHS_H__
6 #define CHROME_COMMON_CHROME_PATHS_H__ 6 #define CHROME_COMMON_CHROME_PATHS_H__
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
11 // This file declares path keys for the chrome module. These can be used with 11 // This file declares path keys for the chrome module. These can be used with
12 // the PathService to access various special directories and files. 12 // the PathService to access various special directories and files.
13 13
14 namespace chrome { 14 namespace chrome {
15 15
16 enum { 16 enum {
17 PATH_START = 1000, 17 PATH_START = 1000,
18 18
19 DIR_APP = PATH_START, // Directory where dlls and data reside. 19 DIR_APP = PATH_START, // Directory where dlls and data reside.
20 DIR_LOGS, // Directory where logs should be written. 20 DIR_LOGS, // Directory where logs should be written.
21 DIR_USER_DATA, // Directory where user data can be written. 21 DIR_USER_DATA, // Directory where user data can be written.
22 DIR_CRASH_DUMPS, // Directory where crash dumps are written. 22 DIR_CRASH_DUMPS, // Directory where crash dumps are written.
23 DIR_USER_DESKTOP, // Directory that correspond to the desktop. 23 DIR_USER_DESKTOP, // Directory that correspond to the desktop.
24 DIR_RESOURCES, // Directory containing separate file resources 24 DIR_RESOURCES, // Directory containing separate file resources
25 // used by Chrome at runtime. 25 // used by Chrome at runtime.
26 DIR_INSPECTOR, // Directory where web inspector is located. 26 DIR_INSPECTOR, // Directory where web inspector is located.
27 DIR_APP_DICTIONARIES, // Directory where the global dictionaries are. 27 DIR_APP_DICTIONARIES, // Directory where the global dictionaries are.
28 DIR_USER_DOCUMENTS, // Directory for a user's "My Documents". 28 DIR_USER_DOCUMENTS, // Directory for a user's "My Documents".
29 DIR_DEFAULT_DOWNLOADS_SAFE, // Directory for a user's 29 DIR_DEFAULT_DOWNLOADS_SAFE, // Directory for a user's
30 // "My Documents/Downloads". 30 // "My Documents/Downloads", (Windows) or
31 // "Downloads". (Linux)
31 DIR_DEFAULT_DOWNLOADS, // Directory for a user's downloads. 32 DIR_DEFAULT_DOWNLOADS, // Directory for a user's downloads.
32 DIR_USER_DATA_TEMP, // A temp directory within DIR_USER_DATA. Use 33 DIR_USER_DATA_TEMP, // A temp directory within DIR_USER_DATA. Use
33 // this when a temporary file or directory will 34 // this when a temporary file or directory will
34 // be moved into the profile, to avoid issues 35 // be moved into the profile, to avoid issues
35 // moving across volumes. See crbug.com/13044 . 36 // moving across volumes. See crbug.com/13044 .
36 // Getting this path does not create it. Users 37 // Getting this path does not create it. Users
37 // should check that the path exists before 38 // should check that the path exists before
38 // using it. 39 // using it.
39 DIR_INTERNAL_PLUGINS, // Directory where internal plugins reside. 40 DIR_INTERNAL_PLUGINS, // Directory where internal plugins reside.
40 #if defined(OS_POSIX) && !defined(OS_MACOSX) 41 #if defined(OS_POSIX) && !defined(OS_MACOSX)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 100
100 PATH_END 101 PATH_END
101 }; 102 };
102 103
103 // Call once to register the provider for the path keys defined above. 104 // Call once to register the provider for the path keys defined above.
104 void RegisterPathProvider(); 105 void RegisterPathProvider();
105 106
106 } // namespace chrome 107 } // namespace chrome
107 108
108 #endif // CHROME_COMMON_CHROME_PATHS_H__ 109 #endif // CHROME_COMMON_CHROME_PATHS_H__
OLDNEW
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/common/chrome_paths.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698