Chromium Code Reviews| 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 COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 | 98 |
| 99 // Returns the delegate to its starting state by removing any page specific | 99 // Returns the delegate to its starting state by removing any page specific |
| 100 // values or settings. | 100 // values or settings. |
| 101 void Reset(); | 101 void Reset(); |
| 102 | 102 |
| 103 // Inform the Password Manager of a filled form. | 103 // Inform the Password Manager of a filled form. |
| 104 void AddPasswordFormMapping( | 104 void AddPasswordFormMapping( |
| 105 const FormFieldData& form, | 105 const FormFieldData& form, |
| 106 const PasswordFormFillData& fill_data); | 106 const PasswordFormFillData& fill_data); |
| 107 | 107 |
| 108 // Whether the form data should be saved. | |
| 109 virtual bool ShouldSaveFormData(content::WebContents* web_contents); | |
|
benm (inactive)
2013/06/17 17:23:17
I don't see caller in this patch?
sgurun-gerrit only
2013/06/25 02:44:32
Done.
| |
| 110 | |
| 108 protected: | 111 protected: |
| 109 friend class content::WebContentsUserData<AutofillExternalDelegate>; | 112 friend class content::WebContentsUserData<AutofillExternalDelegate>; |
| 110 AutofillExternalDelegate(content::WebContents* web_contents, | 113 AutofillExternalDelegate(content::WebContents* web_contents, |
| 111 AutofillManager* autofill_manager); | 114 AutofillManager* autofill_manager); |
| 112 virtual ~AutofillExternalDelegate(); | 115 virtual ~AutofillExternalDelegate(); |
| 113 | 116 |
| 114 content::WebContents* web_contents() { return web_contents_; } | 117 content::WebContents* web_contents() { return web_contents_; } |
| 115 | 118 |
| 116 base::WeakPtr<AutofillExternalDelegate> GetWeakPtr(); | 119 base::WeakPtr<AutofillExternalDelegate> GetWeakPtr(); |
| 117 | 120 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 190 std::vector<int> data_list_unique_ids_; | 193 std::vector<int> data_list_unique_ids_; |
| 191 | 194 |
| 192 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; | 195 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; |
| 193 | 196 |
| 194 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); | 197 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); |
| 195 }; | 198 }; |
| 196 | 199 |
| 197 } // namespace autofill | 200 } // namespace autofill |
| 198 | 201 |
| 199 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ | 202 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| OLD | NEW |