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

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

Issue 3461019: FBTF: Move virtual methods to implementation files. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Win+chromeos+mac fixes Created 10 years, 3 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "base/stl_util-inl.h" 10 #include "base/stl_util-inl.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // When a form is submitted, we prepare to save the password but wait 56 // When a form is submitted, we prepare to save the password but wait
57 // until we decide the user has successfully logged in. This is step 1 57 // until we decide the user has successfully logged in. This is step 1
58 // of 2 (see SavePassword). 58 // of 2 (see SavePassword).
59 void ProvisionallySavePassword(webkit_glue::PasswordForm form); 59 void ProvisionallySavePassword(webkit_glue::PasswordForm form);
60 60
61 // Clear any pending saves 61 // Clear any pending saves
62 void ClearProvisionalSave(); 62 void ClearProvisionalSave();
63 63
64 // LoginModel implementation. 64 // LoginModel implementation.
65 virtual void SetObserver(LoginModelObserver* observer) { 65 virtual void SetObserver(LoginModelObserver* observer);
66 observer_ = observer;
67 }
68 66
69 private: 67 private:
70 // Note about how a PasswordFormManager can transition from 68 // Note about how a PasswordFormManager can transition from
71 // pending_login_managers_ to provisional_save_manager_ and the infobar. 69 // pending_login_managers_ to provisional_save_manager_ and the infobar.
72 // 70 //
73 // 1. form "seen" 71 // 1. form "seen"
74 // | new 72 // | new
75 // | ___ Infobar 73 // | ___ Infobar
76 // pending_login -- form submit --> provisional_save ___/ 74 // pending_login -- form submit --> provisional_save ___/
77 // ^ | \___ (update DB) 75 // ^ | \___ (update DB)
(...skipping 25 matching lines...) Expand all
103 LoginModelObserver* observer_; 101 LoginModelObserver* observer_;
104 102
105 // Set to false to disable the password manager (will no longer fill 103 // Set to false to disable the password manager (will no longer fill
106 // passwords or ask you if you want to save passwords). 104 // passwords or ask you if you want to save passwords).
107 BooleanPrefMember password_manager_enabled_; 105 BooleanPrefMember password_manager_enabled_;
108 106
109 DISALLOW_COPY_AND_ASSIGN(PasswordManager); 107 DISALLOW_COPY_AND_ASSIGN(PasswordManager);
110 }; 108 };
111 109
112 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_ 110 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698