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

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

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "net/base/nss_cert_database.h" 13 #include "net/cert/nss_cert_database.h"
14 14
15 // CertificateManagerModel provides the data to be displayed in the certificate 15 // CertificateManagerModel provides the data to be displayed in the certificate
16 // manager dialog, and processes changes from the view. 16 // manager dialog, and processes changes from the view.
17 class CertificateManagerModel { 17 class CertificateManagerModel {
18 public: 18 public:
19 // Map from the subject organization name to the list of certs from that 19 // Map from the subject organization name to the list of certs from that
20 // organization. If a cert does not have an organization name, the 20 // organization. If a cert does not have an organization name, the
21 // subject's CertPrincipal::GetDisplayName() value is used instead. 21 // subject's CertPrincipal::GetDisplayName() value is used instead.
22 typedef std::map<std::string, net::CertificateList> OrgGroupingMap; 22 typedef std::map<std::string, net::CertificateList> OrgGroupingMap;
23 23
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 net::NSSCertDatabase* cert_db_; 114 net::NSSCertDatabase* cert_db_;
115 net::CertificateList cert_list_; 115 net::CertificateList cert_list_;
116 116
117 // The observer to notify when certificate list is refreshed. 117 // The observer to notify when certificate list is refreshed.
118 Observer* observer_; 118 Observer* observer_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(CertificateManagerModel); 120 DISALLOW_COPY_AND_ASSIGN(CertificateManagerModel);
121 }; 121 };
122 122
123 #endif // CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ 123 #endif // CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/captive_portal/captive_portal_tab_reloader_unittest.cc ('k') | chrome/browser/certificate_manager_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698