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

Side by Side Diff: base/nss_util.h

Issue 6185005: NSS: don't set environment variables when multi-threaded. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 11 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 | « no previous file | base/nss_util.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_NSS_UTIL_H_ 5 #ifndef BASE_NSS_UTIL_H_
6 #define BASE_NSS_UTIL_H_ 6 #define BASE_NSS_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 #if defined(USE_NSS) 11 #if defined(USE_NSS)
12 class FilePath; 12 class FilePath;
13 #endif // defined(USE_NSS) 13 #endif // defined(USE_NSS)
14 14
15 // This file specifically doesn't depend on any NSS or NSPR headers because it 15 // This file specifically doesn't depend on any NSS or NSPR headers because it
16 // is included by various (non-crypto) parts of chrome to call the 16 // is included by various (non-crypto) parts of chrome to call the
17 // initialization functions. 17 // initialization functions.
18 namespace base { 18 namespace base {
19 19
20 class Lock; 20 class Lock;
21 class Time; 21 class Time;
22 22
23 #if defined(USE_NSS)
24 // EarlySetupForNSSInit performs lightweight setup which must occur before the
25 // process goes multithreaded. This does not initialise NSS. For test, see
26 // EnsureNSSInit.
27 void EarlySetupForNSSInit();
28 #endif
29
23 // Initialize NRPR if it isn't already initialized. This function is 30 // Initialize NRPR if it isn't already initialized. This function is
24 // thread-safe, and NSPR will only ever be initialized once. NSPR will be 31 // thread-safe, and NSPR will only ever be initialized once. NSPR will be
25 // properly shut down on program exit. 32 // properly shut down on program exit.
26 void EnsureNSPRInit(); 33 void EnsureNSPRInit();
27 34
28 // Initialize NSS if it isn't already initialized. This must be called before 35 // Initialize NSS if it isn't already initialized. This must be called before
29 // any other NSS functions. This function is thread-safe, and NSS will only 36 // any other NSS functions. This function is thread-safe, and NSS will only
30 // ever be initialized once. NSS will be properly shut down on program exit. 37 // ever be initialized once. NSS will be properly shut down on program exit.
31 void EnsureNSSInit(); 38 void EnsureNSSInit();
32 39
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 private: 76 private:
70 Lock *lock_; 77 Lock *lock_;
71 DISALLOW_COPY_AND_ASSIGN(AutoNSSWriteLock); 78 DISALLOW_COPY_AND_ASSIGN(AutoNSSWriteLock);
72 }; 79 };
73 80
74 #endif // defined(USE_NSS) 81 #endif // defined(USE_NSS)
75 82
76 } // namespace base 83 } // namespace base
77 84
78 #endif // BASE_NSS_UTIL_H_ 85 #endif // BASE_NSS_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/nss_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698