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

Side by Side Diff: base/environment.h

Issue 2161013003: Changing the default path for RemoteSecurityKeyIpcServer test channels (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename
Patch Set: Removing a file that was accidentally included. Created 4 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 BASE_ENVIRONMENT_H_ 5 #ifndef BASE_ENVIRONMENT_H_
6 #define BASE_ENVIRONMENT_H_ 6 #define BASE_ENVIRONMENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 11
12 #include "base/base_export.h" 12 #include "base/base_export.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/strings/string_piece.h" 14 #include "base/strings/string_piece.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 16
17 namespace base { 17 namespace base {
18 18
19 namespace env_vars { 19 namespace env_vars {
20 20
21 #if defined(OS_POSIX) 21 #if defined(OS_POSIX)
22 BASE_EXPORT extern const char kHome[]; 22 BASE_EXPORT extern const char kHome[];
23 BASE_EXPORT extern const char kTempDir[];
Sergey Ulanov 2016/07/19 22:00:51 Does this need to be in base instead of somewhere
joedow 2016/07/19 23:04:12 My change here was under the assumption that addin
Lei Zhang 2016/07/19 23:09:31 It turns out we steer everyone to use GetTempDir()
23 #endif 24 #endif
24 25
25 } // namespace env_vars 26 } // namespace env_vars
26 27
27 class BASE_EXPORT Environment { 28 class BASE_EXPORT Environment {
28 public: 29 public:
29 virtual ~Environment(); 30 virtual ~Environment();
30 31
31 // Returns the appropriate platform-specific instance. 32 // Returns the appropriate platform-specific instance.
32 static std::unique_ptr<Environment> Create(); 33 static std::unique_ptr<Environment> Create();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // array without keeping the original around. 82 // array without keeping the original around.
82 BASE_EXPORT std::unique_ptr<char* []> AlterEnvironment( 83 BASE_EXPORT std::unique_ptr<char* []> AlterEnvironment(
83 const char* const* env, 84 const char* const* env,
84 const EnvironmentMap& changes); 85 const EnvironmentMap& changes);
85 86
86 #endif 87 #endif
87 88
88 } // namespace base 89 } // namespace base
89 90
90 #endif // BASE_ENVIRONMENT_H_ 91 #endif // BASE_ENVIRONMENT_H_
OLDNEW
« no previous file with comments | « no previous file | base/environment.cc » ('j') | remoting/host/security_key/security_key_ipc_constants.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698