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

Side by Side Diff: net/cert/cert_database.h

Issue 161653002: Add function to support clearing SSL/certificate store. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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) 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 NET_CERT_CERT_DATABASE_H_ 5 #ifndef NET_CERT_CERT_DATABASE_H_
6 #define NET_CERT_CERT_DATABASE_H_ 6 #define NET_CERT_CERT_DATABASE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void RemoveObserver(Observer* observer); 75 void RemoveObserver(Observer* observer);
76 76
77 #if defined(OS_MACOSX) && !defined(OS_IOS) 77 #if defined(OS_MACOSX) && !defined(OS_IOS)
78 // Configures the current message loop to observe and forward events from 78 // Configures the current message loop to observe and forward events from
79 // Keychain services. The MessageLoop must have an associated CFRunLoop, 79 // Keychain services. The MessageLoop must have an associated CFRunLoop,
80 // which means that this must be called from a MessageLoop of TYPE_UI. 80 // which means that this must be called from a MessageLoop of TYPE_UI.
81 void SetMessageLoopForKeychainEvents(); 81 void SetMessageLoopForKeychainEvents();
82 #endif 82 #endif
83 83
84 #if defined(OS_ANDROID) 84 #if defined(OS_ANDROID)
85 // Drops client certificate store and any open SSL connections.
86 void Clear();
Ryan Sleevi 2014/02/12 22:56:22 // On Android, the system key store may be replace
Yaron 2014/02/12 23:24:20 Done.
87
85 // On android, the system database is used. When the system notifies the 88 // On android, the system database is used. When the system notifies the
Ryan Sleevi 2014/02/12 22:56:22 s/android/Android/
Yaron 2014/02/12 23:24:20 Done.
86 // application that the certificates changed, the observers must be notified. 89 // application that the certificates changed, the observers must be notified.
87 void OnAndroidKeyChainChanged(); 90 void OnAndroidKeyChainChanged();
88 #endif 91 #endif
89 92
90 #if defined(USE_NSS) 93 #if defined(USE_NSS)
91 // Observe events from the |source| and forward them to observers of this 94 // Observe events from the |source| and forward them to observers of this
92 // CertDatabase. 95 // CertDatabase.
93 void ObserveNSSCertDatabase(NSSCertDatabase* source); 96 void ObserveNSSCertDatabase(NSSCertDatabase* source);
94 #endif 97 #endif
95 98
(...skipping 15 matching lines...) Expand all
111 friend class Notifier; 114 friend class Notifier;
112 scoped_ptr<Notifier> notifier_; 115 scoped_ptr<Notifier> notifier_;
113 #endif 116 #endif
114 117
115 DISALLOW_COPY_AND_ASSIGN(CertDatabase); 118 DISALLOW_COPY_AND_ASSIGN(CertDatabase);
116 }; 119 };
117 120
118 } // namespace net 121 } // namespace net
119 122
120 #endif // NET_CERT_CERT_DATABASE_H_ 123 #endif // NET_CERT_CERT_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698