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

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

Issue 12224027: Revert "GTTF: Add missing virtual destructors." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « cc/video_frame_provider.h ('k') | chrome/browser/download/download_danger_prompt.h » ('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) 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 13 matching lines...) Expand all
24 // Enumeration of the possible columns in the certificate manager tree view. 24 // Enumeration of the possible columns in the certificate manager tree view.
25 enum Column { 25 enum Column {
26 COL_SUBJECT_NAME, 26 COL_SUBJECT_NAME,
27 COL_CERTIFICATE_STORE, 27 COL_CERTIFICATE_STORE,
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 virtual ~Observer() { }
35
36 // 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.
37 // TODO(mattm): do a more granular updating strategy? Maybe retrieve new 35 // TODO(mattm): do a more granular updating strategy? Maybe retrieve new
38 // 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?
39 virtual void CertificatesRefreshed() = 0; 37 virtual void CertificatesRefreshed() = 0;
40 }; 38 };
41 39
42 explicit CertificateManagerModel(Observer* observer); 40 explicit CertificateManagerModel(Observer* observer);
43 ~CertificateManagerModel(); 41 ~CertificateManagerModel();
44 42
45 // Accessor for read-only access to the underlying NSSCertDatabase. 43 // Accessor for read-only access to the underlying NSSCertDatabase.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 net::NSSCertDatabase* cert_db_; 114 net::NSSCertDatabase* cert_db_;
117 net::CertificateList cert_list_; 115 net::CertificateList cert_list_;
118 116
119 // The observer to notify when certificate list is refreshed. 117 // The observer to notify when certificate list is refreshed.
120 Observer* observer_; 118 Observer* observer_;
121 119
122 DISALLOW_COPY_AND_ASSIGN(CertificateManagerModel); 120 DISALLOW_COPY_AND_ASSIGN(CertificateManagerModel);
123 }; 121 };
124 122
125 #endif // CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ 123 #endif // CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_
OLDNEW
« no previous file with comments | « cc/video_frame_provider.h ('k') | chrome/browser/download/download_danger_prompt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698