diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-16 00:52:43 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-16 00:52:43 +0000 |
commit | 913e45a38e635ad3b0d7db78b78367cccd62b421 (patch) | |
tree | 750d8758c099a26d9edc7971d93431237a287a66 | |
parent | a1277d59b62d993d15a951a2cb2372b835ecdec5 (diff) | |
download | chromium_src-913e45a38e635ad3b0d7db78b78367cccd62b421.zip chromium_src-913e45a38e635ad3b0d7db78b78367cccd62b421.tar.gz chromium_src-913e45a38e635ad3b0d7db78b78367cccd62b421.tar.bz2 |
Cleanup: Remove forward declarations in various chrome/browser directories.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8533030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110225 0039d316-1c4b-4281-b951-d872f2087c98
28 files changed, 15 insertions, 67 deletions
diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.h b/chrome/browser/autofill/autofill_cc_infobar_delegate.h index 415fe7c..9b17bc7 100644 --- a/chrome/browser/autofill/autofill_cc_infobar_delegate.h +++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.h @@ -16,8 +16,7 @@ class CreditCard; class PersonalDataManager; -class SkBitmap; -class TabContents; + namespace content { struct LoadCommittedDetails; } diff --git a/chrome/browser/autofill/autofill_download.h b/chrome/browser/autofill/autofill_download.h index 6144b90..9a27b15 100644 --- a/chrome/browser/autofill/autofill_download.h +++ b/chrome/browser/autofill/autofill_download.h @@ -21,13 +21,8 @@ class AutofillMetrics; class FormStructure; -class GURL; class Profile; -namespace net { -class URLRequestStatus; -} - // Handles getting and updating Autofill heuristics. class AutofillDownloadManager : public content::URLFetcherDelegate { public: diff --git a/chrome/browser/autofill/autofill_feedback_infobar_delegate.h b/chrome/browser/autofill/autofill_feedback_infobar_delegate.h index 04e4eca..551f1b5 100644 --- a/chrome/browser/autofill/autofill_feedback_infobar_delegate.h +++ b/chrome/browser/autofill/autofill_feedback_infobar_delegate.h @@ -6,13 +6,13 @@ #define CHROME_BROWSER_AUTOFILL_AUTOFILL_FEEDBACK_INFOBAR_DELEGATE_H_ #pragma once +#include <string> + #include "base/basictypes.h" #include "base/string16.h" #include "chrome/browser/tab_contents/link_infobar_delegate.h" #include "webkit/glue/window_open_disposition.h" -class TabContents; - // An InfoBar delegate that prompts the user to provide additional feedback for // the Autofill developers. class AutofillFeedbackInfoBarDelegate : public LinkInfoBarDelegate { diff --git a/chrome/browser/history/history.h b/chrome/browser/history/history.h index c6f257bb..de8b1d3 100644 --- a/chrome/browser/history/history.h +++ b/chrome/browser/history/history.h @@ -32,28 +32,15 @@ class FilePath; class GURL; class HistoryURLProvider; struct HistoryURLProviderParams; -class InMemoryURLDatabase; -class MainPagesRequest; class PageUsageData; class PageUsageRequest; class Profile; -class SkBitmap; -struct ThumbnailScore; namespace base { class Thread; class Time; } -namespace browser_sync { -class HistoryModelWorker; -class TypedUrlDataTypeController; -} - -namespace gfx { -class Image; -} - namespace history { class InMemoryHistoryBackend; class InMemoryURLIndex; diff --git a/chrome/browser/history/history_database.h b/chrome/browser/history/history_database.h index 5985917..f027ebb 100644 --- a/chrome/browser/history/history_database.h +++ b/chrome/browser/history/history_database.h @@ -22,9 +22,6 @@ class FilePath; namespace history { -// Forward declaration for the temporary migration code in Init(). -class TextDatabaseManager; - // Encapsulates the SQL connection for the history database. This class holds // the database connection and has methods the history system (including full // text search) uses for writing and retrieving information. @@ -181,6 +178,6 @@ class HistoryDatabase : public DownloadDatabase, DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); }; -} // history +} // namespace history #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ diff --git a/chrome/browser/history/in_memory_history_backend.h b/chrome/browser/history/in_memory_history_backend.h index 5eb8c18e..b280b5e 100644 --- a/chrome/browser/history/in_memory_history_backend.h +++ b/chrome/browser/history/in_memory_history_backend.h @@ -24,7 +24,6 @@ class FilePath; class GURL; -class HistoryDatabase; class Profile; namespace history { diff --git a/chrome/browser/history/in_memory_url_index.h b/chrome/browser/history/in_memory_url_index.h index dfae2d4..bcbd676 100644 --- a/chrome/browser/history/in_memory_url_index.h +++ b/chrome/browser/history/in_memory_url_index.h @@ -26,8 +26,6 @@ #include "sql/connection.h" #include "testing/gtest/include/gtest/gtest_prod.h" -class Profile; - namespace base { class Time; } diff --git a/chrome/browser/history/top_sites_cache.h b/chrome/browser/history/top_sites_cache.h index 567be2f..1101a13 100644 --- a/chrome/browser/history/top_sites_cache.h +++ b/chrome/browser/history/top_sites_cache.h @@ -6,15 +6,12 @@ #define CHROME_BROWSER_HISTORY_TOP_SITES_CACHE_H_ #pragma once -#include <algorithm> #include <map> -#include <string> +#include <utility> #include "base/memory/ref_counted.h" #include "chrome/browser/history/history_types.h" -class RefCountedBytes; - namespace history { // TopSitesCache caches the top sites and thumbnails for TopSites. diff --git a/chrome/browser/history/top_sites_database.h b/chrome/browser/history/top_sites_database.h index 77f176f..087f55d 100644 --- a/chrome/browser/history/top_sites_database.h +++ b/chrome/browser/history/top_sites_database.h @@ -16,8 +16,6 @@ #include "sql/meta_table.h" class FilePath; -class RefCountedMemory; -class SkBitmap; namespace sql { class Connection; diff --git a/chrome/browser/prerender/prerender_contents.h b/chrome/browser/prerender/prerender_contents.h index 37010cc..7a14308 100644 --- a/chrome/browser/prerender/prerender_contents.h +++ b/chrome/browser/prerender/prerender_contents.h @@ -30,10 +30,6 @@ namespace base { class ProcessMetrics; } -namespace gfx { -class Rect; -} - namespace prerender { class PrerenderManager; diff --git a/chrome/browser/prerender/prerender_render_view_host_observer.h b/chrome/browser/prerender/prerender_render_view_host_observer.h index d13c092..0485ca0 100644 --- a/chrome/browser/prerender/prerender_render_view_host_observer.h +++ b/chrome/browser/prerender/prerender_render_view_host_observer.h @@ -5,13 +5,11 @@ #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_RENDER_VIEW_HOST_OBSERVER_H_ #define CHROME_BROWSER_PRERENDER_PRERENDER_RENDER_VIEW_HOST_OBSERVER_H_ -#include "content/browser/renderer_host/render_view_host_observer.h" - -#include <string> #include <vector> +#include "content/browser/renderer_host/render_view_host_observer.h" + struct FaviconURL; -class GURL; class RenderViewHost; namespace IPC { @@ -47,5 +45,6 @@ class PrerenderRenderViewHostObserver : public RenderViewHostObserver { PrerenderContents* prerender_contents_; }; -} +} // namespace prerender + #endif // CHROME_BROWSER_PRERENDER_PRERENDER_RENDER_VIEW_HOST_OBSERVER_H_ diff --git a/chrome/browser/prerender/prerender_tab_helper.h b/chrome/browser/prerender/prerender_tab_helper.h index 0f184c5..e70d182 100644 --- a/chrome/browser/prerender/prerender_tab_helper.h +++ b/chrome/browser/prerender/prerender_tab_helper.h @@ -14,7 +14,6 @@ class GURL; namespace prerender { -class PrerenderContents; class PrerenderManager; // PrerenderTabHelper is responsible for recording perceived pageload times diff --git a/chrome/browser/printing/cloud_print/cloud_print_setup_flow.h b/chrome/browser/printing/cloud_print/cloud_print_setup_flow.h index 5e7d597..a41ca40 100644 --- a/chrome/browser/printing/cloud_print/cloud_print_setup_flow.h +++ b/chrome/browser/printing/cloud_print/cloud_print_setup_flow.h @@ -18,7 +18,6 @@ #include "ui/base/l10n/l10n_util.h" #include "ui/gfx/native_widget_types.h" -class Browser; class CloudPrintServiceProcessHelper; class CloudPrintSetupMessageHandler; class GaiaAuthFetcher; diff --git a/chrome/browser/printing/print_job.h b/chrome/browser/printing/print_job.h index 17f3857..bf907af 100644 --- a/chrome/browser/printing/print_job.h +++ b/chrome/browser/printing/print_job.h @@ -13,7 +13,6 @@ #include "content/public/browser/notification_observer.h" #include "content/public/browser/notification_registrar.h" -class GURL; class Thread; namespace printing { diff --git a/chrome/browser/printing/print_preview_tab_controller.h b/chrome/browser/printing/print_preview_tab_controller.h index 75a01082..f4717ae 100644 --- a/chrome/browser/printing/print_preview_tab_controller.h +++ b/chrome/browser/printing/print_preview_tab_controller.h @@ -20,7 +20,6 @@ #include "content/public/browser/notification_observer.h" #include "content/public/browser/notification_registrar.h" -class Browser; class GURL; class RenderProcessHost; class TabContentsWrapper; diff --git a/chrome/browser/printing/print_system_task_proxy.h b/chrome/browser/printing/print_system_task_proxy.h index efcaa26..106cce4 100644 --- a/chrome/browser/printing/print_system_task_proxy.h +++ b/chrome/browser/printing/print_system_task_proxy.h @@ -6,6 +6,8 @@ #define CHROME_BROWSER_PRINTING_PRINT_SYSTEM_TASK_PROXY_H_ #pragma once +#include <string> + #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "build/build_config.h" @@ -14,7 +16,6 @@ namespace base { class DictionaryValue; -class FundamentalValue; class StringValue; } diff --git a/chrome/browser/printing/print_view_manager.h b/chrome/browser/printing/print_view_manager.h index f59fb1e..4925a45 100644 --- a/chrome/browser/printing/print_view_manager.h +++ b/chrome/browser/printing/print_view_manager.h @@ -13,7 +13,6 @@ #include "content/public/browser/notification_registrar.h" #include "printing/printed_pages_source.h" -class RenderViewHost; class TabContentsWrapper; struct PrintHostMsg_DidPrintPage_Params; diff --git a/chrome/browser/printing/printer_query.h b/chrome/browser/printing/printer_query.h index e04557d..3add3e4 100644 --- a/chrome/browser/printing/printer_query.h +++ b/chrome/browser/printing/printer_query.h @@ -17,7 +17,6 @@ class MessageLoop; namespace base { class DictionaryValue; -class Thread; } namespace printing { diff --git a/chrome/browser/ui/browser_navigator_browsertest.h b/chrome/browser/ui/browser_navigator_browsertest.h index 4beeca6..a729998 100644 --- a/chrome/browser/ui/browser_navigator_browsertest.h +++ b/chrome/browser/ui/browser_navigator_browsertest.h @@ -9,7 +9,6 @@ #include "chrome/test/base/in_process_browser_test.h" #include "content/public/browser/notification_types.h" -class GURL; class Profile; class TabContentsWrapper; diff --git a/chrome/browser/ui/browser_tab_restore_service_delegate.h b/chrome/browser/ui/browser_tab_restore_service_delegate.h index a30b895..73ac3ec 100644 --- a/chrome/browser/ui/browser_tab_restore_service_delegate.h +++ b/chrome/browser/ui/browser_tab_restore_service_delegate.h @@ -12,7 +12,6 @@ #include "chrome/browser/sessions/tab_restore_service_delegate.h" class Browser; -class Profile; class SessionStorageNamespace; class TabContents; class TabNavigation; diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h index 226ffeb..680c8df 100644 --- a/chrome/browser/ui/browser_window.h +++ b/chrome/browser/ui/browser_window.h @@ -18,15 +18,12 @@ class BrowserWindowTesting; class DownloadShelf; class FindBar; class GURL; -class HtmlDialogUIDelegate; class LocationBar; -class Panel; class Profile; class StatusBubble; class TabContents; class TabContentsWrapper; class TemplateURL; -class TemplateURLService; #if !defined(OS_MACOSX) class ToolbarView; #endif diff --git a/chrome/browser/ui/fullscreen_exit_bubble.h b/chrome/browser/ui/fullscreen_exit_bubble.h index 50eb675..05268f2 100644 --- a/chrome/browser/ui/fullscreen_exit_bubble.h +++ b/chrome/browser/ui/fullscreen_exit_bubble.h @@ -16,10 +16,6 @@ class Browser; -namespace ui { -class SlideAnimation; -} - namespace gfx { class Rect; } diff --git a/chrome/browser/ui/intents/web_intent_picker_controller.h b/chrome/browser/ui/intents/web_intent_picker_controller.h index 3814c14..ab835c3 100644 --- a/chrome/browser/ui/intents/web_intent_picker_controller.h +++ b/chrome/browser/ui/intents/web_intent_picker_controller.h @@ -17,11 +17,9 @@ #include "webkit/glue/web_intent_data.h" class Browser; -class FaviconService; class GURL; class SkBitmap; class TabContentsWrapper; -class WebDataService; class WebIntentPicker; class WebIntentPickerFactory; diff --git a/chrome/browser/ui/omnibox/location_bar.h b/chrome/browser/ui/omnibox/location_bar.h index 4dff5b6..5a0b908 100644 --- a/chrome/browser/ui/omnibox/location_bar.h +++ b/chrome/browser/ui/omnibox/location_bar.h @@ -21,11 +21,9 @@ #include "webkit/glue/window_open_disposition.h" class ExtensionAction; -class InstantController; class LocationBarTesting; class OmniboxView; class TabContents; -class TabContentsWrapper; class LocationBar { public: diff --git a/chrome/browser/ui/search_engines/search_engine_tab_helper.h b/chrome/browser/ui/search_engines/search_engine_tab_helper.h index 2f9d6a4..4a955ec 100644 --- a/chrome/browser/ui/search_engines/search_engine_tab_helper.h +++ b/chrome/browser/ui/search_engines/search_engine_tab_helper.h @@ -12,7 +12,6 @@ #include "content/browser/tab_contents/tab_contents_observer.h" class SearchEngineTabHelperDelegate; -class TabContentsWrapper; // Per-tab search engine manager. Handles dealing search engine processing // functionality. diff --git a/chrome/browser/ui/tab_contents/tab_contents_wrapper.h b/chrome/browser/ui/tab_contents/tab_contents_wrapper.h index 33ba9a5..f99daf5 100644 --- a/chrome/browser/ui/tab_contents/tab_contents_wrapper.h +++ b/chrome/browser/ui/tab_contents/tab_contents_wrapper.h @@ -32,7 +32,6 @@ class ExtensionTabHelper; class ExtensionWebNavigationTabObserver; class ExternalProtocolObserver; class FaviconTabHelper; -class FileSelectObserver; class FindTabHelper; class InfoBarTabHelper; class HistoryTabHelper; diff --git a/chrome/browser/ui/touch/tabs/touch_tab_strip.h b/chrome/browser/ui/touch/tabs/touch_tab_strip.h index dd8e560..830334b 100644 --- a/chrome/browser/ui/touch/tabs/touch_tab_strip.h +++ b/chrome/browser/ui/touch/tabs/touch_tab_strip.h @@ -12,7 +12,6 @@ namespace ui { enum TouchStatus; } -class TabStripSelectionModel; class TouchTab; /////////////////////////////////////////////////////////////////////////////// diff --git a/chrome/browser/ui/views/fullscreen_exit_bubble_views.h b/chrome/browser/ui/views/fullscreen_exit_bubble_views.h index d5df1c5..bd94d2c 100644 --- a/chrome/browser/ui/views/fullscreen_exit_bubble_views.h +++ b/chrome/browser/ui/views/fullscreen_exit_bubble_views.h @@ -11,6 +11,10 @@ #include "googleurl/src/gurl.h" #include "views/controls/link_listener.h" +namespace ui { +class SlideAnimation; +} + namespace views { class View; class Widget; |