| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/autofill/form_structure.h" | 24 #include "chrome/browser/autofill/form_structure.h" |
| 25 #include "content/public/browser/web_contents_observer.h" | 25 #include "content/public/browser/web_contents_observer.h" |
| 26 | 26 |
| 27 class AutofillExternalDelegate; | 27 class AutofillExternalDelegate; |
| 28 class AutofillField; | 28 class AutofillField; |
| 29 class AutofillProfile; | 29 class AutofillProfile; |
| 30 class AutofillMetrics; | 30 class AutofillMetrics; |
| 31 class CreditCard; | 31 class CreditCard; |
| 32 class PersonalDataManager; | 32 class PersonalDataManager; |
| 33 class PrefService; | 33 class PrefService; |
| 34 class RenderViewHost; | |
| 35 class TabContentsWrapper; | 34 class TabContentsWrapper; |
| 36 | 35 |
| 37 struct ViewHostMsg_FrameNavigate_Params; | 36 struct ViewHostMsg_FrameNavigate_Params; |
| 38 | 37 |
| 38 namespace content { |
| 39 class RenderViewHost; |
| 40 } |
| 41 |
| 39 namespace gfx { | 42 namespace gfx { |
| 40 class Rect; | 43 class Rect; |
| 41 }; | 44 } |
| 42 | 45 |
| 43 namespace IPC { | 46 namespace IPC { |
| 44 class Message; | 47 class Message; |
| 45 } | 48 } |
| 46 | 49 |
| 47 namespace webkit { | 50 namespace webkit { |
| 48 namespace forms { | 51 namespace forms { |
| 49 struct FormData; | 52 struct FormData; |
| 50 struct FormField; | 53 struct FormField; |
| 51 } | 54 } |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 const webkit::forms::FormField& field, | 163 const webkit::forms::FormField& field, |
| 161 const gfx::Rect& bounding_box, | 164 const gfx::Rect& bounding_box, |
| 162 bool display_warning); | 165 bool display_warning); |
| 163 void OnDidEndTextFieldEditing(); | 166 void OnDidEndTextFieldEditing(); |
| 164 void OnHideAutofillPopup(); | 167 void OnHideAutofillPopup(); |
| 165 | 168 |
| 166 // Fills |host| with the RenderViewHost for this tab. | 169 // Fills |host| with the RenderViewHost for this tab. |
| 167 // Returns false if Autofill is disabled or if the host is unavailable. | 170 // Returns false if Autofill is disabled or if the host is unavailable. |
| 168 bool GetHost(const std::vector<AutofillProfile*>& profiles, | 171 bool GetHost(const std::vector<AutofillProfile*>& profiles, |
| 169 const std::vector<CreditCard*>& credit_cards, | 172 const std::vector<CreditCard*>& credit_cards, |
| 170 RenderViewHost** host) const WARN_UNUSED_RESULT; | 173 content::RenderViewHost** host) const WARN_UNUSED_RESULT; |
| 171 | 174 |
| 172 // Unpacks |unique_id| and fills |profile| or |credit_card| with the | 175 // Unpacks |unique_id| and fills |profile| or |credit_card| with the |
| 173 // appropriate data source. Returns false if the unpacked id cannot be found. | 176 // appropriate data source. Returns false if the unpacked id cannot be found. |
| 174 bool GetProfileOrCreditCard(int unique_id, | 177 bool GetProfileOrCreditCard(int unique_id, |
| 175 const std::vector<AutofillProfile*>& profiles, | 178 const std::vector<AutofillProfile*>& profiles, |
| 176 const std::vector<CreditCard*>& credit_cards, | 179 const std::vector<CreditCard*>& credit_cards, |
| 177 const AutofillProfile** profile, | 180 const AutofillProfile** profile, |
| 178 const CreditCard** credit_card, | 181 const CreditCard** credit_card, |
| 179 size_t* variant) const WARN_UNUSED_RESULT; | 182 size_t* variant) const WARN_UNUSED_RESULT; |
| 180 | 183 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 TestTabContentsWithExternalDelegate); | 333 TestTabContentsWithExternalDelegate); |
| 331 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, | 334 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, |
| 332 UserHappinessFormLoadAndSubmission); | 335 UserHappinessFormLoadAndSubmission); |
| 333 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); | 336 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); |
| 334 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); | 337 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); |
| 335 | 338 |
| 336 DISALLOW_COPY_AND_ASSIGN(AutofillManager); | 339 DISALLOW_COPY_AND_ASSIGN(AutofillManager); |
| 337 }; | 340 }; |
| 338 | 341 |
| 339 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ | 342 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ |
| OLD | NEW |