From b1e5ceb336729e8d4d32de55dfd3daca2d206b4d Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Tue, 29 Mar 2011 19:58:16 +0000 Subject: iwyu: Cleanup in the following files: * address.cc * address_field.cc * autofill_cc_infobar_delegate.cc * autofill_country.cc * autofill_manager.cc BUG=none TEST=none R=dhollowa@chromium.org Review URL: http://codereview.chromium.org/6683064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79728 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/autofill/address.cc | 3 +++ chrome/browser/autofill/address.h | 1 + chrome/browser/autofill/address_field.cc | 6 ++++++ chrome/browser/autofill/address_field.h | 5 ++++- .../autofill/autofill_cc_infobar_delegate.cc | 4 +++- .../browser/autofill/autofill_cc_infobar_delegate.h | 7 +++++++ chrome/browser/autofill/autofill_country.cc | 8 ++++++-- chrome/browser/autofill/autofill_manager.cc | 16 ++++++++++++++-- chrome/browser/autofill/autofill_manager.h | 21 +++++++++++++++++---- 9 files changed, 61 insertions(+), 10 deletions(-) (limited to 'chrome/browser/autofill') diff --git a/chrome/browser/autofill/address.cc b/chrome/browser/autofill/address.cc index d00bfa9..c6ca1a8 100644 --- a/chrome/browser/autofill/address.cc +++ b/chrome/browser/autofill/address.cc @@ -4,7 +4,10 @@ #include "chrome/browser/autofill/address.h" +#include + #include "base/basictypes.h" +#include "base/logging.h" #include "base/string_util.h" #include "chrome/browser/autofill/autofill_country.h" #include "chrome/browser/autofill/autofill_type.h" diff --git a/chrome/browser/autofill/address.h b/chrome/browser/autofill/address.h index de6ac46..bbeb30c 100644 --- a/chrome/browser/autofill/address.h +++ b/chrome/browser/autofill/address.h @@ -11,6 +11,7 @@ #include "base/string16.h" #include "chrome/browser/autofill/autofill_type.h" +#include "chrome/browser/autofill/field_types.h" #include "chrome/browser/autofill/form_group.h" // A form group that stores address information. diff --git a/chrome/browser/autofill/address_field.cc b/chrome/browser/autofill/address_field.cc index 0b2eedb..1cf05c7 100644 --- a/chrome/browser/autofill/address_field.cc +++ b/chrome/browser/autofill/address_field.cc @@ -4,6 +4,8 @@ #include "chrome/browser/autofill/address_field.h" +#include + #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/string16.h" @@ -152,6 +154,10 @@ AddressType AddressField::FindType() const { return AddressTypeFromText(name); } +bool AddressField::IsFullAddress() { + return address1_ != NULL; +} + AddressField::AddressField() : company_(NULL), address1_(NULL), diff --git a/chrome/browser/autofill/address_field.h b/chrome/browser/autofill/address_field.h index 8d16270..2d546e9 100644 --- a/chrome/browser/autofill/address_field.h +++ b/chrome/browser/autofill/address_field.h @@ -8,7 +8,10 @@ #include +#include "base/basictypes.h" +#include "base/string16.h" #include "chrome/browser/autofill/autofill_type.h" +#include "chrome/browser/autofill/field_types.h" #include "chrome/browser/autofill/form_field.h" class AutofillField; @@ -28,7 +31,7 @@ class AddressField : public FormField { // Returns true if this is a full address as opposed to an address fragment // such as a stand-alone ZIP code. - bool IsFullAddress() { return address1_ != NULL; } + bool IsFullAddress(); private: AddressField(); diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc index eb835eb..f10d5ab 100644 --- a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc +++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc @@ -4,9 +4,11 @@ #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" +#include "base/logging.h" #include "chrome/browser/autofill/credit_card.h" #include "chrome/browser/autofill/personal_data_manager.h" -#include "chrome/browser/browser_list.h" +#include "chrome/browser/ui/browser.h" +#include "chrome/browser/ui/browser_list.h" #include "grit/generated_resources.h" #include "grit/theme_resources.h" #include "ui/base/l10n/l10n_util.h" diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.h b/chrome/browser/autofill/autofill_cc_infobar_delegate.h index cc59d9d..1c4fa77 100644 --- a/chrome/browser/autofill/autofill_cc_infobar_delegate.h +++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.h @@ -6,12 +6,19 @@ #define CHROME_BROWSER_AUTOFILL_AUTOFILL_CC_INFOBAR_DELEGATE_H_ #pragma once +#include "base/basictypes.h" +#include "base/gtest_prod_util.h" +#include "base/memory/scoped_ptr.h" #include "base/string16.h" #include "chrome/browser/autofill/autofill_metrics.h" #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" +#include "content/browser/tab_contents/navigation_controller.h" +#include "webkit/glue/window_open_disposition.h" class CreditCard; class PersonalDataManager; +class SkBitmap; +class TabContents; // An InfoBar delegate that enables the user to allow or deny storing credit // card information gathered from a form submission. diff --git a/chrome/browser/autofill/autofill_country.cc b/chrome/browser/autofill/autofill_country.cc index 64289b4..a027981 100644 --- a/chrome/browser/autofill/autofill_country.cc +++ b/chrome/browser/autofill/autofill_country.cc @@ -4,9 +4,12 @@ #include "chrome/browser/autofill/autofill_country.h" +#include +#include #include #include +#include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/memory/singleton.h" #include "base/stl_util-inl.h" @@ -14,13 +17,14 @@ #include "base/utf_string_conversions.h" #include "chrome/browser/browser_process.h" #include "grit/generated_resources.h" -#include "ui/base/l10n/l10n_util_collator.h" #include "ui/base/l10n/l10n_util.h" #include "unicode/coll.h" #include "unicode/locid.h" -#include "unicode/sortkey.h" #include "unicode/ucol.h" #include "unicode/uloc.h" +#include "unicode/unistr.h" +#include "unicode/urename.h" +#include "unicode/utypes.h" namespace { diff --git a/chrome/browser/autofill/autofill_manager.cc b/chrome/browser/autofill/autofill_manager.cc index 1e7dd1f..2e4b149 100644 --- a/chrome/browser/autofill/autofill_manager.cc +++ b/chrome/browser/autofill/autofill_manager.cc @@ -4,22 +4,31 @@ #include "chrome/browser/autofill/autofill_manager.h" +#include + #include #include #include #include -#include "base/basictypes.h" +#include "base/logging.h" #include "base/string16.h" +#include "base/string_util.h" #include "base/utf_string_conversions.h" #include "chrome/browser/autocomplete_history_manager.h" #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" +#include "chrome/browser/autofill/autofill_field.h" #include "chrome/browser/autofill/autofill_metrics.h" +#include "chrome/browser/autofill/autofill_profile.h" +#include "chrome/browser/autofill/autofill_type.h" +#include "chrome/browser/autofill/credit_card.h" #include "chrome/browser/autofill/form_structure.h" +#include "chrome/browser/autofill/personal_data_manager.h" #include "chrome/browser/autofill/phone_number.h" #include "chrome/browser/autofill/select_control_handler.h" #include "chrome/browser/prefs/pref_service.h" #include "chrome/browser/profiles/profile.h" +#include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_list.h" #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" #include "chrome/common/autofill_messages.h" @@ -27,10 +36,13 @@ #include "chrome/common/pref_names.h" #include "chrome/common/url_constants.h" #include "content/browser/renderer_host/render_view_host.h" -#include "content/common/notification_details.h" +#include "content/browser/tab_contents/tab_contents.h" #include "content/common/notification_service.h" +#include "content/common/notification_source.h" #include "content/common/notification_type.h" +#include "googleurl/src/gurl.h" #include "grit/generated_resources.h" +#include "ipc/ipc_message_macros.h" #include "ui/base/l10n/l10n_util.h" #include "webkit/glue/form_data.h" #include "webkit/glue/form_field.h" diff --git a/chrome/browser/autofill/autofill_manager.h b/chrome/browser/autofill/autofill_manager.h index be44ff1..dc9156b 100644 --- a/chrome/browser/autofill/autofill_manager.h +++ b/chrome/browser/autofill/autofill_manager.h @@ -7,28 +7,41 @@ #pragma once #include +#include #include #include +#include "base/basictypes.h" +#include "base/compiler_specific.h" #include "base/gtest_prod_util.h" #include "base/memory/scoped_ptr.h" #include "base/memory/scoped_vector.h" +#include "base/string16.h" #include "chrome/browser/autofill/autofill_download.h" -#include "chrome/browser/autofill/personal_data_manager.h" +#include "chrome/browser/autofill/field_types.h" +#include "chrome/browser/autofill/form_structure.h" +#include "content/browser/tab_contents/navigation_controller.h" #include "content/browser/tab_contents/tab_contents_observer.h" -class AutofillCCInfoBarDelegate; +class AutofillField; class AutofillProfile; class AutofillMetrics; class CreditCard; -class FormStructure; +class PersonalDataManager; class PrefService; class RenderViewHost; +class TabContents; + +struct ViewHostMsg_FrameNavigate_Params; + +namespace IPC { +class Message; +} namespace webkit_glue { struct FormData; struct FormField; -} // namespace webkit_glue +} // Manages saving and restoring the user's personal information entered into web // forms. -- cgit v1.1