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

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

Issue 10306009: Make sure only the main browser process and service proceses are allowed to create the profile dire… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add gpu to the list of allowed processes. Created 8 years, 7 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_paths.cc ('k') | chrome/common/chrome_paths_linux.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_INTERNAL_H_ 5 #ifndef CHROME_COMMON_CHROME_PATHS_INTERNAL_H_
6 #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ 6 #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string>
10
9 #include "build/build_config.h" 11 #include "build/build_config.h"
10 12
11 #if defined(OS_MACOSX) 13 #if defined(OS_MACOSX)
12 #if defined(__OBJC__) 14 #if defined(__OBJC__)
13 @class NSBundle; 15 @class NSBundle;
14 #else 16 #else
15 class NSBundle; 17 class NSBundle;
16 #endif 18 #endif
17 #endif 19 #endif
18 20
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 80
79 // Get the global Application Support directory (under /Library/). 81 // Get the global Application Support directory (under /Library/).
80 bool GetGlobalApplicationSupportDirectory(FilePath* result); 82 bool GetGlobalApplicationSupportDirectory(FilePath* result);
81 83
82 // Returns the NSBundle for the outer browser application, even when running 84 // Returns the NSBundle for the outer browser application, even when running
83 // inside the helper. In unbundled applications, such as tests, returns nil. 85 // inside the helper. In unbundled applications, such as tests, returns nil.
84 NSBundle* OuterAppBundle(); 86 NSBundle* OuterAppBundle();
85 87
86 #endif // OS_MACOSX 88 #endif // OS_MACOSX
87 89
90 // Checks if the |process_type| has the rights to access the profile.
91 bool ProcessNeedsProfileDir(const std::string& process_type);
92
88 } // namespace chrome 93 } // namespace chrome
89 94
90 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ 95 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_paths.cc ('k') | chrome/common/chrome_paths_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698