| 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 namespace content { | 59 namespace content { |
| 60 class RenderViewHost; | 60 class RenderViewHost; |
| 61 class WebContents; | 61 class WebContents; |
| 62 | 62 |
| 63 struct PasswordForm; | 63 struct PasswordForm; |
| 64 } | 64 } |
| 65 | 65 |
| 66 namespace gfx { | 66 namespace gfx { |
| 67 class Rect; | 67 class Rect; |
| 68 class RectF; |
| 68 } | 69 } |
| 69 | 70 |
| 70 namespace IPC { | 71 namespace IPC { |
| 71 class Message; | 72 class Message; |
| 72 } | 73 } |
| 73 | 74 |
| 74 // Manages saving and restoring the user's personal information entered into web | 75 // Manages saving and restoring the user's personal information entered into web |
| 75 // forms. | 76 // forms. |
| 76 class AutofillManager : public content::WebContentsObserver, | 77 class AutofillManager : public content::WebContentsObserver, |
| 77 public AutofillDownloadManager::Observer, | 78 public AutofillDownloadManager::Observer, |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 void OnFormsSeen(const std::vector<FormData>& forms, | 232 void OnFormsSeen(const std::vector<FormData>& forms, |
| 232 const base::TimeTicks& timestamp); | 233 const base::TimeTicks& timestamp); |
| 233 void OnTextFieldDidChange(const FormData& form, | 234 void OnTextFieldDidChange(const FormData& form, |
| 234 const FormFieldData& field, | 235 const FormFieldData& field, |
| 235 const base::TimeTicks& timestamp); | 236 const base::TimeTicks& timestamp); |
| 236 | 237 |
| 237 // The |bounding_box| is a window relative value. | 238 // The |bounding_box| is a window relative value. |
| 238 void OnQueryFormFieldAutofill(int query_id, | 239 void OnQueryFormFieldAutofill(int query_id, |
| 239 const FormData& form, | 240 const FormData& form, |
| 240 const FormFieldData& field, | 241 const FormFieldData& field, |
| 241 const gfx::Rect& bounding_box, | 242 const gfx::RectF& bounding_box, |
| 242 bool display_warning); | 243 bool display_warning); |
| 243 void OnDidEndTextFieldEditing(); | 244 void OnDidEndTextFieldEditing(); |
| 244 void OnHideAutofillPopup(); | 245 void OnHideAutofillPopup(); |
| 245 void OnAddPasswordFormMapping( | 246 void OnAddPasswordFormMapping( |
| 246 const FormFieldData& form, | 247 const FormFieldData& form, |
| 247 const PasswordFormFillData& fill_data); | 248 const PasswordFormFillData& fill_data); |
| 248 void OnShowPasswordSuggestions(const FormFieldData& field, | 249 void OnShowPasswordSuggestions(const FormFieldData& field, |
| 249 const gfx::Rect& bounds, | 250 const gfx::RectF& bounds, |
| 250 const std::vector<string16>& suggestions); | 251 const std::vector<string16>& suggestions); |
| 251 void OnSetDataList(const std::vector<string16>& values, | 252 void OnSetDataList(const std::vector<string16>& values, |
| 252 const std::vector<string16>& labels, | 253 const std::vector<string16>& labels, |
| 253 const std::vector<string16>& icons, | 254 const std::vector<string16>& icons, |
| 254 const std::vector<int>& unique_ids); | 255 const std::vector<int>& unique_ids); |
| 255 | 256 |
| 256 // Requests an interactive autocomplete UI be shown. | 257 // Requests an interactive autocomplete UI be shown. |
| 257 void OnRequestAutocomplete(const FormData& form, | 258 void OnRequestAutocomplete(const FormData& form, |
| 258 const GURL& frame_url, | 259 const GURL& frame_url, |
| 259 const content::SSLStatus& ssl_status); | 260 const content::SSLStatus& ssl_status); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, | 428 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, |
| 428 TestTabContentsWithExternalDelegate); | 429 TestTabContentsWithExternalDelegate); |
| 429 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 430 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
| 430 UserHappinessFormLoadAndSubmission); | 431 UserHappinessFormLoadAndSubmission); |
| 431 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 432 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
| 432 | 433 |
| 433 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 434 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 434 }; | 435 }; |
| 435 | 436 |
| 436 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 437 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| OLD | NEW |