OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // When a form is submitted, we prepare to save the password but wait | 47 // When a form is submitted, we prepare to save the password but wait |
48 // until we decide the user has successfully logged in. This is step 1 | 48 // until we decide the user has successfully logged in. This is step 1 |
49 // of 2 (see SavePassword). | 49 // of 2 (see SavePassword). |
50 void ProvisionallySavePassword(webkit_glue::PasswordForm form); | 50 void ProvisionallySavePassword(webkit_glue::PasswordForm form); |
51 | 51 |
52 // TabContentsObserver overrides. | 52 // TabContentsObserver overrides. |
53 virtual void DidStopLoading() OVERRIDE; | 53 virtual void DidStopLoading() OVERRIDE; |
54 virtual void DidNavigateAnyFrame( | 54 virtual void DidNavigateAnyFrame( |
55 const content::LoadCommittedDetails& details, | 55 const content::LoadCommittedDetails& details, |
56 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; | 56 const content::FrameNavigateParams& params) OVERRIDE; |
57 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 57 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
58 | 58 |
59 void OnPasswordFormsFound( | 59 void OnPasswordFormsFound( |
60 const std::vector<webkit_glue::PasswordForm>& forms); | 60 const std::vector<webkit_glue::PasswordForm>& forms); |
61 void OnPasswordFormsVisible( | 61 void OnPasswordFormsVisible( |
62 const std::vector<webkit_glue::PasswordForm>& visible_forms); | 62 const std::vector<webkit_glue::PasswordForm>& visible_forms); |
63 | 63 |
64 private: | 64 private: |
65 FRIEND_TEST_ALL_PREFIXES(PasswordManagerTest, FormSeenThenLeftPage); | 65 FRIEND_TEST_ALL_PREFIXES(PasswordManagerTest, FormSeenThenLeftPage); |
66 | 66 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 LoginModelObserver* observer_; | 109 LoginModelObserver* observer_; |
110 | 110 |
111 // Set to false to disable the password manager (will no longer fill | 111 // Set to false to disable the password manager (will no longer fill |
112 // passwords or ask you if you want to save passwords). | 112 // passwords or ask you if you want to save passwords). |
113 BooleanPrefMember password_manager_enabled_; | 113 BooleanPrefMember password_manager_enabled_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(PasswordManager); | 115 DISALLOW_COPY_AND_ASSIGN(PasswordManager); |
116 }; | 116 }; |
117 | 117 |
118 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ | 118 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ |
OLD | NEW |