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

Side by Side Diff: chrome/browser/certificate_manager_model.h

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 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 CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ 5 #ifndef CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_
6 #define CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ 6 #define CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 COL_SERIAL_NUMBER, 28 COL_SERIAL_NUMBER,
29 COL_EXPIRES_ON, 29 COL_EXPIRES_ON,
30 }; 30 };
31 31
32 class Observer { 32 class Observer {
33 public: 33 public:
34 // Called to notify the view that the certificate list has been refreshed. 34 // Called to notify the view that the certificate list has been refreshed.
35 // TODO(mattm): do a more granular updating strategy? Maybe retrieve new 35 // TODO(mattm): do a more granular updating strategy? Maybe retrieve new
36 // list of certs, diff against past list, and then notify of the changes? 36 // list of certs, diff against past list, and then notify of the changes?
37 virtual void CertificatesRefreshed() = 0; 37 virtual void CertificatesRefreshed() = 0;
38
39 protected:
40 virtual ~Observer() { }
38 }; 41 };
39 42
40 explicit CertificateManagerModel(Observer* observer); 43 explicit CertificateManagerModel(Observer* observer);
41 ~CertificateManagerModel(); 44 ~CertificateManagerModel();
42 45
43 // Accessor for read-only access to the underlying NSSCertDatabase. 46 // Accessor for read-only access to the underlying NSSCertDatabase.
44 const net::NSSCertDatabase* cert_db() const { return cert_db_; } 47 const net::NSSCertDatabase* cert_db() const { return cert_db_; }
45 48
46 // Trigger a refresh of the list of certs, unlock any slots if necessary. 49 // Trigger a refresh of the list of certs, unlock any slots if necessary.
47 // Following this call, the observer CertificatesRefreshed method will be 50 // Following this call, the observer CertificatesRefreshed method will be
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 net::NSSCertDatabase* cert_db_; 117 net::NSSCertDatabase* cert_db_;
115 net::CertificateList cert_list_; 118 net::CertificateList cert_list_;
116 119
117 // The observer to notify when certificate list is refreshed. 120 // The observer to notify when certificate list is refreshed.
118 Observer* observer_; 121 Observer* observer_;
119 122
120 DISALLOW_COPY_AND_ASSIGN(CertificateManagerModel); 123 DISALLOW_COPY_AND_ASSIGN(CertificateManagerModel);
121 }; 124 };
122 125
123 #endif // CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ 126 #endif // CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698