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

Side by Side Diff: net/ocsp/nss_ocsp.h

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
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 NET_OCSP_NSS_OCSP_H_ 5 #ifndef NET_OCSP_NSS_OCSP_H_
6 #define NET_OCSP_NSS_OCSP_H_ 6 #define NET_OCSP_NSS_OCSP_H_
7 #pragma once 7 #pragma once
8 8
9 #include "net/base/net_api.h" 9 #include "net/base/net_export.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 class URLRequestContext; 13 class URLRequestContext;
14 14
15 // Sets the MessageLoop for OCSP to the current message loop. 15 // Sets the MessageLoop for OCSP to the current message loop.
16 // This should be called before EnsureOCSPInit() if you want to 16 // This should be called before EnsureOCSPInit() if you want to
17 // control the message loop for OCSP. 17 // control the message loop for OCSP.
18 NET_API void SetMessageLoopForOCSP(); 18 NET_EXPORT void SetMessageLoopForOCSP();
19 19
20 // Initializes OCSP handlers for NSS. This must be called before any 20 // Initializes OCSP handlers for NSS. This must be called before any
21 // certificate verification functions. This function is thread-safe, and OCSP 21 // certificate verification functions. This function is thread-safe, and OCSP
22 // handlers will only ever be initialized once. ShutdownOCSP() must be called 22 // handlers will only ever be initialized once. ShutdownOCSP() must be called
23 // on shutdown. 23 // on shutdown.
24 NET_API void EnsureOCSPInit(); 24 NET_EXPORT void EnsureOCSPInit();
25 25
26 // This should be called once on shutdown to stop issuing URLRequests for OCSP. 26 // This should be called once on shutdown to stop issuing URLRequests for OCSP.
27 NET_API void ShutdownOCSP(); 27 NET_EXPORT void ShutdownOCSP();
28 28
29 // Set URLRequestContext for OCSP handlers. 29 // Set URLRequestContext for OCSP handlers.
30 NET_API void SetURLRequestContextForOCSP(URLRequestContext* request_context); 30 NET_EXPORT void SetURLRequestContextForOCSP(URLRequestContext* request_context);
31 31
32 } // namespace net 32 } // namespace net
33 33
34 #endif // NET_OCSP_NSS_OCSP_H_ 34 #endif // NET_OCSP_NSS_OCSP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698