| OLD | NEW |
| 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_NATIVE_BACKEND_KWALLET_X_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_KWALLET_X_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_KWALLET_X_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_KWALLET_X_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // when reading old pickles that fail to deserialize using the native size. | 135 // when reading old pickles that fail to deserialize using the native size. |
| 136 static bool DeserializeValueSize(const std::string& signon_realm, | 136 static bool DeserializeValueSize(const std::string& signon_realm, |
| 137 const PickleIterator& iter, | 137 const PickleIterator& iter, |
| 138 int version, | 138 int version, |
| 139 bool size_32, | 139 bool size_32, |
| 140 bool warn_only, | 140 bool warn_only, |
| 141 ScopedVector<autofill::PasswordForm>* forms); | 141 ScopedVector<autofill::PasswordForm>* forms); |
| 142 | 142 |
| 143 // In case the fields in the pickle ever change, version them so we can try to | 143 // In case the fields in the pickle ever change, version them so we can try to |
| 144 // read old pickles. (Note: do not eat old pickles past the expiration date.) | 144 // read old pickles. (Note: do not eat old pickles past the expiration date.) |
| 145 static const int kPickleVersion = 4; | 145 static const int kPickleVersion = 5; |
| 146 | 146 |
| 147 // Generates a profile-specific folder name based on profile_id_. | 147 // Generates a profile-specific folder name based on profile_id_. |
| 148 std::string GetProfileSpecificFolderName() const; | 148 std::string GetProfileSpecificFolderName() const; |
| 149 | 149 |
| 150 // The local profile id, used to generate the folder name. | 150 // The local profile id, used to generate the folder name. |
| 151 const LocalProfileId profile_id_; | 151 const LocalProfileId profile_id_; |
| 152 | 152 |
| 153 // The KWallet folder name, possibly based on the local profile id. | 153 // The KWallet folder name, possibly based on the local profile id. |
| 154 std::string folder_name_; | 154 std::string folder_name_; |
| 155 | 155 |
| 156 // DBus handle for communication with klauncher and kwalletd. | 156 // DBus handle for communication with klauncher and kwalletd. |
| 157 scoped_refptr<dbus::Bus> session_bus_; | 157 scoped_refptr<dbus::Bus> session_bus_; |
| 158 // Object proxy for kwalletd. We do not own this. | 158 // Object proxy for kwalletd. We do not own this. |
| 159 dbus::ObjectProxy* kwallet_proxy_; | 159 dbus::ObjectProxy* kwallet_proxy_; |
| 160 | 160 |
| 161 // The name of the wallet we've opened. Set during Init(). | 161 // The name of the wallet we've opened. Set during Init(). |
| 162 std::string wallet_name_; | 162 std::string wallet_name_; |
| 163 // The application name (e.g. "Chromium"), shown in KWallet auth dialogs. | 163 // The application name (e.g. "Chromium"), shown in KWallet auth dialogs. |
| 164 const std::string app_name_; | 164 const std::string app_name_; |
| 165 | 165 |
| 166 DISALLOW_COPY_AND_ASSIGN(NativeBackendKWallet); | 166 DISALLOW_COPY_AND_ASSIGN(NativeBackendKWallet); |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_KWALLET_X_H_ | 169 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_KWALLET_X_H_ |
| OLD | NEW |