| OLD | NEW | 
|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_PASSWORD_STORE_MAC_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ | 
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ | 
| 7 #pragma once | 7 #pragma once | 
| 8 | 8 | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" | 
| 12 #include "base/thread.h" | 12 #include "base/thread.h" | 
| 13 #include "chrome/browser/password_manager/login_database.h" | 13 #include "chrome/browser/password_manager/login_database.h" | 
| 14 #include "chrome/browser/password_manager/password_store.h" | 14 #include "chrome/browser/password_manager/password_store.h" | 
| 15 #include "chrome/common/notification_service.h" |  | 
| 16 | 15 | 
| 17 class MacKeychain; | 16 class MacKeychain; | 
|  | 17 class NotificationService; | 
| 18 | 18 | 
| 19 // Implements PasswordStore on top of the OS X Keychain, with an internal | 19 // Implements PasswordStore on top of the OS X Keychain, with an internal | 
| 20 // database for extra metadata. For an overview of the interactions with the | 20 // database for extra metadata. For an overview of the interactions with the | 
| 21 // Keychain, as well as the rationale for some of the behaviors, see the | 21 // Keychain, as well as the rationale for some of the behaviors, see the | 
| 22 // Keychain integration design doc: | 22 // Keychain integration design doc: | 
| 23 // http://dev.chromium.org/developers/design-documents/os-x-password-manager-key
    chain-integration | 23 // http://dev.chromium.org/developers/design-documents/os-x-password-manager-key
    chain-integration | 
| 24 class PasswordStoreMac : public PasswordStore { | 24 class PasswordStoreMac : public PasswordStore { | 
| 25  public: | 25  public: | 
| 26   // Takes ownership of |keychain| and |login_db|, both of which must be | 26   // Takes ownership of |keychain| and |login_db|, both of which must be | 
| 27   // non-NULL. | 27   // non-NULL. | 
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 86   scoped_ptr<base::Thread> thread_; | 86   scoped_ptr<base::Thread> thread_; | 
| 87 | 87 | 
| 88   // Since we aren't running on a well-known thread but still want to send out | 88   // Since we aren't running on a well-known thread but still want to send out | 
| 89   // notifications, we need to run our own service. | 89   // notifications, we need to run our own service. | 
| 90   scoped_ptr<NotificationService> notification_service_; | 90   scoped_ptr<NotificationService> notification_service_; | 
| 91 | 91 | 
| 92   DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); | 92   DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); | 
| 93 }; | 93 }; | 
| 94 | 94 | 
| 95 #endif  // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ | 95 #endif  // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ | 
| OLD | NEW | 
|---|