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

Side by Side Diff: chrome/common/chrome_constants.cc

Issue 27354: Add FilePath setter/getter to pref service.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/common/chrome_constants.h ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "chrome/common/chrome_constants.h" 5 #include "chrome/common/chrome_constants.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 8
9 #define FPL FILE_PATH_LITERAL 9 #define FPL FILE_PATH_LITERAL
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 // filenames 32 // filenames
33 const wchar_t kArchivedHistoryFilename[] = L"Archived History"; 33 const wchar_t kArchivedHistoryFilename[] = L"Archived History";
34 const FilePath::CharType kCacheDirname[] = FPL("Cache"); 34 const FilePath::CharType kCacheDirname[] = FPL("Cache");
35 const FilePath::CharType kMediaCacheDirname[] = FPL("Media Cache"); 35 const FilePath::CharType kMediaCacheDirname[] = FPL("Media Cache");
36 const FilePath::CharType kOffTheRecordMediaCacheDirname[] = 36 const FilePath::CharType kOffTheRecordMediaCacheDirname[] =
37 FPL("Incognito Media Cache"); 37 FPL("Incognito Media Cache");
38 const wchar_t kChromePluginDataDirname[] = L"Plugin Data"; 38 const wchar_t kChromePluginDataDirname[] = L"Plugin Data";
39 const FilePath::CharType kCookieFilename[] = FPL("Cookies"); 39 const FilePath::CharType kCookieFilename[] = FPL("Cookies");
40 const FilePath::CharType kHistoryFilename[] = FPL("History"); 40 const FilePath::CharType kHistoryFilename[] = FPL("History");
41 const wchar_t kLocalStateFilename[] = L"Local State"; 41 const FilePath::CharType kLocalStateFilename[] = FPL("Local State");
42 const FilePath::CharType kPreferencesFilename[] = FPL("Preferences"); 42 const FilePath::CharType kPreferencesFilename[] = FPL("Preferences");
43 const FilePath::CharType kSafeBrowsingFilename[] = FPL("Safe Browsing"); 43 const FilePath::CharType kSafeBrowsingFilename[] = FPL("Safe Browsing");
44 const wchar_t kThumbnailsFilename[] = L"Thumbnails"; 44 const wchar_t kThumbnailsFilename[] = L"Thumbnails";
45 const wchar_t kUserDataDirname[] = L"User Data"; 45 const wchar_t kUserDataDirname[] = L"User Data";
46 const FilePath::CharType kUserScriptsDirname[] = FPL("User Scripts"); 46 const FilePath::CharType kUserScriptsDirname[] = FPL("User Scripts");
47 const FilePath::CharType kWebDataFilename[] = FPL("Web Data"); 47 const FilePath::CharType kWebDataFilename[] = FPL("Web Data");
48 const FilePath::CharType kBookmarksFileName[] = FPL("Bookmarks"); 48 const FilePath::CharType kBookmarksFileName[] = FPL("Bookmarks");
49 const FilePath::CharType kHistoryBookmarksFileName[] = 49 const FilePath::CharType kHistoryBookmarksFileName[] =
50 FPL("Bookmarks From History"); 50 FPL("Bookmarks From History");
51 const FilePath::CharType kCustomDictionaryFileName[] = 51 const FilePath::CharType kCustomDictionaryFileName[] =
52 FPL("Custom Dictionary.txt"); 52 FPL("Custom Dictionary.txt");
53 53
54 // This number used to be limited to 32 in the past (see b/535234). 54 // This number used to be limited to 32 in the past (see b/535234).
55 const unsigned int kMaxRendererProcessCount = 42; 55 const unsigned int kMaxRendererProcessCount = 42;
56 const int kStatsMaxThreads = 32; 56 const int kStatsMaxThreads = 32;
57 const int kStatsMaxCounters = 300; 57 const int kStatsMaxCounters = 300;
58 58
59 // We don't enable record mode in the released product because users could 59 // We don't enable record mode in the released product because users could
60 // potentially be tricked into running a product in record mode without 60 // potentially be tricked into running a product in record mode without
61 // knowing it. Enable in debug builds. Playback mode is allowed always, 61 // knowing it. Enable in debug builds. Playback mode is allowed always,
62 // because it is useful for testing and not hazardous by itself. 62 // because it is useful for testing and not hazardous by itself.
63 #ifndef NDEBUG 63 #ifndef NDEBUG
64 const bool kRecordModeEnabled = true; 64 const bool kRecordModeEnabled = true;
65 #else 65 #else
66 const bool kRecordModeEnabled = false; 66 const bool kRecordModeEnabled = false;
67 #endif 67 #endif
68 68
69 } // namespace chrome 69 } // namespace chrome
70 70
OLDNEW
« no previous file with comments | « chrome/common/chrome_constants.h ('k') | chrome/common/chrome_paths.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698