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

Side by Side Diff: chrome/browser/managed_mode/chromeos/manager_password_service.h

Issue 296773002: Add a Key class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MANAGED_MODE_CHROMEOS_MANAGER_PASSWORD_SERVICE_H_ 5 #ifndef CHROME_BROWSER_MANAGED_MODE_CHROMEOS_MANAGER_PASSWORD_SERVICE_H_
6 #define CHROME_BROWSER_MANAGED_MODE_CHROMEOS_MANAGER_PASSWORD_SERVICE_H_ 6 #define CHROME_BROWSER_MANAGED_MODE_CHROMEOS_MANAGER_PASSWORD_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 private: 48 private:
49 void OnSharedSettingsChange(const std::string& mu_id, const std::string& key); 49 void OnSharedSettingsChange(const std::string& mu_id, const std::string& key);
50 void GetManagedUsersCallback(const std::string& sync_mu_id, 50 void GetManagedUsersCallback(const std::string& sync_mu_id,
51 const std::string& user_id, 51 const std::string& user_id,
52 scoped_ptr<base::DictionaryValue> password_data, 52 scoped_ptr<base::DictionaryValue> password_data,
53 const base::DictionaryValue* managed_users); 53 const base::DictionaryValue* managed_users);
54 void OnAddKeySuccess(const UserContext& master_key_context, 54 void OnAddKeySuccess(const UserContext& master_key_context,
55 const std::string& user_id, 55 const std::string& user_id,
56 scoped_ptr<base::DictionaryValue> password_data); 56 scoped_ptr<base::DictionaryValue> password_data);
57 void OnContextTransformed(const UserContext& master_key_context); 57 void OnKeyTransformedIfNeeded(const UserContext& master_key_context);
58 void OnNewManagerKeySuccess(const UserContext& master_key_context); 58 void OnNewManagerKeySuccess(const UserContext& master_key_context);
59 void OnOldManagedUserKeyDeleted(const UserContext& master_key_context); 59 void OnOldManagedUserKeyDeleted(const UserContext& master_key_context);
60 void OnOldManagerKeyDeleted(const UserContext& master_key_context); 60 void OnOldManagerKeyDeleted(const UserContext& master_key_context);
61 61
62 // Cached value from Init(). 62 // Cached value from Init().
63 // User id of currently logged in user, that have managed users on device. 63 // User id of currently logged in user, that have managed users on device.
64 std::string user_id_; 64 std::string user_id_;
65 ManagedUserSyncService* user_service_; 65 ManagedUserSyncService* user_service_;
66 ManagedUserSharedSettingsService* settings_service_; 66 ManagedUserSharedSettingsService* settings_service_;
67 67
68 scoped_ptr<ManagedUserSharedSettingsService::ChangeCallbackList::Subscription> 68 scoped_ptr<ManagedUserSharedSettingsService::ChangeCallbackList::Subscription>
69 settings_service_subscription_; 69 settings_service_subscription_;
70 70
71 scoped_refptr<ExtendedAuthenticator> authenticator_; 71 scoped_refptr<ExtendedAuthenticator> authenticator_;
72 72
73 base::WeakPtrFactory<ManagerPasswordService> weak_ptr_factory_; 73 base::WeakPtrFactory<ManagerPasswordService> weak_ptr_factory_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(ManagerPasswordService); 75 DISALLOW_COPY_AND_ASSIGN(ManagerPasswordService);
76 }; 76 };
77 77
78 } // namespace chromeos 78 } // namespace chromeos
79 #endif // CHROME_BROWSER_MANAGED_MODE_CHROMEOS_MANAGER_PASSWORD_SERVICE_H_ 79 #endif // CHROME_BROWSER_MANAGED_MODE_CHROMEOS_MANAGER_PASSWORD_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698