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

Side by Side Diff: chrome/browser/chromeos/cros/cert_library.h

Issue 10826225: Clean-up inline members of nested classes (chrome/browser/chromeos/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forgotten files Created 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/cert_library.cc » ('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_CHROMEOS_CROS_CERT_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 22 matching lines...) Expand all
33 protected: 33 protected:
34 Observer() {} 34 Observer() {}
35 35
36 private: 36 private:
37 DISALLOW_COPY_AND_ASSIGN(Observer); 37 DISALLOW_COPY_AND_ASSIGN(Observer);
38 }; 38 };
39 39
40 // Wrapper class to provide an additional interface for net::CertificateList. 40 // Wrapper class to provide an additional interface for net::CertificateList.
41 class CertList { 41 class CertList {
42 public: 42 public:
43 explicit CertList(CertLibrary* library) : cert_library_(library) {} 43 explicit CertList(CertLibrary* library);
44 ~CertList() {} 44 ~CertList();
45 void Append(net::X509Certificate* cert) { list_.push_back(cert); } 45 void Append(net::X509Certificate* cert) { list_.push_back(cert); }
46 void Clear() { list_.clear(); } 46 void Clear() { list_.clear(); }
47 int Size() const { return static_cast<int>(list_.size()); } 47 int Size() const { return static_cast<int>(list_.size()); }
48 net::X509Certificate* GetCertificateAt(int index) const; 48 net::X509Certificate* GetCertificateAt(int index) const;
49 string16 GetDisplayStringAt(int index) const; // User-visible name. 49 string16 GetDisplayStringAt(int index) const; // User-visible name.
50 std::string GetNicknameAt(int index) const; 50 std::string GetNicknameAt(int index) const;
51 std::string GetPkcs11IdAt(int index) const; 51 std::string GetPkcs11IdAt(int index) const;
52 bool IsHardwareBackedAt(int index) const; 52 bool IsHardwareBackedAt(int index) const;
53 // Finds the index of a Certificate matching |nickname|. 53 // Finds the index of a Certificate matching |nickname|.
54 // Returns -1 if none found. 54 // Returns -1 if none found.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Encrypts |token| with supplemental user key. 105 // Encrypts |token| with supplemental user key.
106 virtual std::string EncryptToken(const std::string& token) = 0; 106 virtual std::string EncryptToken(const std::string& token) = 0;
107 107
108 // Decrypts |token| with supplemental user key. 108 // Decrypts |token| with supplemental user key.
109 virtual std::string DecryptToken(const std::string& encrypted_token) = 0; 109 virtual std::string DecryptToken(const std::string& encrypted_token) = 0;
110 }; 110 };
111 111
112 } // namespace chromeos 112 } // namespace chromeos
113 113
114 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ 114 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/cert_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698