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

Side by Side Diff: chrome/browser/password_manager/encryptor_password_mac.h

Issue 10693139: Remove #pragma once from chrome/browser/{tab_contents,password_manager,profiles,search_engines,noti… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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_PASSWORD_MANAGER_ENCRYPTOR_PASSWORD_H__ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_ENCRYPTOR_PASSWORD_H__
6 #define CHROME_BROWSER_PASSWORD_MANAGER_ENCRYPTOR_PASSWORD_H__ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_ENCRYPTOR_PASSWORD_H__
7 #pragma once
8 7
9 #include <string> 8 #include <string>
10 9
11 #include "base/basictypes.h" 10 #include "base/basictypes.h"
12 11
13 namespace crypto { 12 namespace crypto {
14 class MacKeychain; 13 class MacKeychain;
15 } // namespace crypto 14 } // namespace crypto
16 15
17 class EncryptorPassword { 16 class EncryptorPassword {
18 public: 17 public:
19 explicit EncryptorPassword(const crypto::MacKeychain& keychain) 18 explicit EncryptorPassword(const crypto::MacKeychain& keychain)
20 : keychain_(keychain) { 19 : keychain_(keychain) {
21 } 20 }
22 21
23 // Get the Encryptor password for this system. If no password exists 22 // Get the Encryptor password for this system. If no password exists
24 // in the Keychain then one is generated, stored in the Mac keychain, and 23 // in the Keychain then one is generated, stored in the Mac keychain, and
25 // returned. 24 // returned.
26 // If one exists then it is fetched from the Keychain and returned. 25 // If one exists then it is fetched from the Keychain and returned.
27 // If the user disallows access to the Keychain (or an error occurs) then an 26 // If the user disallows access to the Keychain (or an error occurs) then an
28 // empty string is returned. 27 // empty string is returned.
29 std::string GetEncryptorPassword() const; 28 std::string GetEncryptorPassword() const;
30 29
31 private: 30 private:
32 DISALLOW_COPY_AND_ASSIGN(EncryptorPassword); 31 DISALLOW_COPY_AND_ASSIGN(EncryptorPassword);
33 const crypto::MacKeychain& keychain_; 32 const crypto::MacKeychain& keychain_;
34 }; 33 };
35 34
36 #endif // CHROME_BROWSER_PASSWORD_MANAGER_ENCRYPTOR_PASSWORD_H__ 35 #endif // CHROME_BROWSER_PASSWORD_MANAGER_ENCRYPTOR_PASSWORD_H__
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/encryptor.h ('k') | chrome/browser/password_manager/ie7_password.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698