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

Side by Side Diff: components/autofill/core/browser/autofill_external_delegate.h

Issue 98753005: [Autofill] Sanitize all data that comes in over IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Loosen kMaxListSize a notch Created 6 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // Inform the delegate that the text field editing has ended. This is 87 // Inform the delegate that the text field editing has ended. This is
88 // used to help record the metrics of when a new popup is shown. 88 // used to help record the metrics of when a new popup is shown.
89 void DidEndTextFieldEditing(); 89 void DidEndTextFieldEditing();
90 90
91 // Returns the delegate to its starting state by removing any page specific 91 // Returns the delegate to its starting state by removing any page specific
92 // values or settings. 92 // values or settings.
93 void Reset(); 93 void Reset();
94 94
95 // Inform the Password Manager of a filled form. 95 // Inform the Password Manager of a filled form.
96 void AddPasswordFormMapping( 96 void AddPasswordFormMapping(const FormFieldData& username_field,
97 const FormFieldData& form, 97 const PasswordFormFillData& fill_data);
98 const PasswordFormFillData& fill_data);
99 98
100 protected: 99 protected:
101 base::WeakPtr<AutofillExternalDelegate> GetWeakPtr(); 100 base::WeakPtr<AutofillExternalDelegate> GetWeakPtr();
102 101
103 private: 102 private:
104 // Fills the form with the Autofill data corresponding to |unique_id|. 103 // Fills the form with the Autofill data corresponding to |unique_id|.
105 // If |is_preview| is true then this is just a preview to show the user what 104 // If |is_preview| is true then this is just a preview to show the user what
106 // would be selected and if |is_preview| is false then the user has selected 105 // would be selected and if |is_preview| is false then the user has selected
107 // this data. 106 // this data.
108 void FillAutofillFormData(int unique_id, bool is_preview); 107 void FillAutofillFormData(int unique_id, bool is_preview);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 std::vector<base::string16> data_list_labels_; 162 std::vector<base::string16> data_list_labels_;
164 163
165 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_; 164 base::WeakPtrFactory<AutofillExternalDelegate> weak_ptr_factory_;
166 165
167 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); 166 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate);
168 }; 167 };
169 168
170 } // namespace autofill 169 } // namespace autofill
171 170
172 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_ 171 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_EXTERNAL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698