summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-09 15:00:10 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-09 15:00:10 +0000
commite46a9e38c55c7544fa3974de39663a63d168eb43 (patch)
tree44509787b00ad9b372fb62b291670e225ea25bdc
parent50f9c55129cb8a2e7a157737e0c95c9fb16603ea (diff)
downloadchromium_src-e46a9e38c55c7544fa3974de39663a63d168eb43.zip
chromium_src-e46a9e38c55c7544fa3974de39663a63d168eb43.tar.gz
chromium_src-e46a9e38c55c7544fa3974de39663a63d168eb43.tar.bz2
importer: Move chrome/browser/importer/importer.[cc,h] to importer_host.[cc,h].
This is the first change in preparation for splitting importer_host.[cc,h] into importer_host.[cc,h] and importer.[cc,h]. With this I'll be able to move the Importer class, in a followup CL, to importer.[cc,h]. Otherwise that will be harder and a mess. BUG=None TEST=None Review URL: http://codereview.chromium.org/6652015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77464 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/automation/automation_provider.cc18
-rw-r--r--chrome/browser/automation/testing_automation_provider.cc2
-rw-r--r--chrome/browser/extensions/extension_bookmarks_module.h2
-rw-r--r--chrome/browser/first_run/first_run.cc4
-rw-r--r--chrome/browser/first_run/first_run_win.cc2
-rw-r--r--chrome/browser/importer/firefox2_importer.h2
-rw-r--r--chrome/browser/importer/firefox3_importer.h2
-rw-r--r--chrome/browser/importer/ie_importer.h2
-rw-r--r--chrome/browser/importer/importer_bridge.cc6
-rw-r--r--chrome/browser/importer/importer_host.cc (renamed from chrome/browser/importer/importer.cc)2
-rw-r--r--chrome/browser/importer/importer_host.h (renamed from chrome/browser/importer/importer.h)6
-rw-r--r--chrome/browser/importer/importer_unittest.cc3
-rw-r--r--chrome/browser/importer/mork_reader.cc2
-rw-r--r--chrome/browser/importer/profile_writer.cc2
-rw-r--r--chrome/browser/importer/safari_importer.h2
-rw-r--r--chrome/browser/importer/toolbar_importer.h2
-rw-r--r--chrome/browser/importer/toolbar_importer_unittest.cc4
-rw-r--r--chrome/browser/ui/cocoa/importer/import_dialog_cocoa.h2
-rw-r--r--chrome/browser/ui/cocoa/importer/import_dialog_cocoa_unittest.mm2
-rw-r--r--chrome/browser/ui/cocoa/importer/import_lock_dialog_cocoa.mm2
-rw-r--r--chrome/browser/ui/cocoa/importer/import_progress_dialog_cocoa.mm2
-rw-r--r--chrome/browser/ui/gtk/importer/import_dialog_gtk.cc3
-rw-r--r--chrome/browser/ui/gtk/importer/import_dialog_gtk.h15
-rw-r--r--chrome/browser/ui/gtk/importer/import_lock_dialog_gtk.cc2
-rw-r--r--chrome/browser/ui/gtk/importer/import_progress_dialog_gtk.cc2
-rw-r--r--chrome/browser/ui/views/importer/import_dialog_view.h2
-rw-r--r--chrome/browser/ui/views/importer/import_lock_dialog_view.cc2
-rw-r--r--chrome/browser/ui/views/importer/import_progress_dialog_view.cc2
-rw-r--r--chrome/browser/ui/webui/options/import_data_handler.cc2
-rw-r--r--chrome/chrome_browser.gypi4
-rw-r--r--chrome/profile_import/profile_import_thread.cc2
31 files changed, 58 insertions, 49 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index 74d32e4..86fae50 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -16,14 +16,15 @@
#include "base/path_service.h"
#include "base/process_util.h"
#include "base/stl_util-inl.h"
+#include "base/string_number_conversions.h"
#include "base/string_util.h"
+#include "base/synchronization/waitable_event.h"
#include "base/task.h"
#include "base/threading/thread.h"
-#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
-#include "base/synchronization/waitable_event.h"
#include "chrome/app/chrome_command_ids.h"
+#include "chrome/browser/autocomplete/autocomplete_edit.h"
#include "chrome/browser/autofill/autofill_manager.h"
#include "chrome/browser/automation/automation_autocomplete_edit_tracker.h"
#include "chrome/browser/automation/automation_browser_tracker.h"
@@ -34,7 +35,7 @@
#include "chrome/browser/automation/automation_tab_tracker.h"
#include "chrome/browser/automation/automation_window_tracker.h"
#include "chrome/browser/automation/extension_port_container.h"
-#include "chrome/browser/autocomplete/autocomplete_edit.h"
+#include "chrome/browser/automation/ui_controls.h"
#include "chrome/browser/blocked_content_container.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/bookmarks/bookmark_storage.h"
@@ -44,8 +45,8 @@
#include "chrome/browser/browsing_data_remover.h"
#include "chrome/browser/character_encoding.h"
#include "chrome/browser/content_settings/host_content_settings_map.h"
-#include "chrome/browser/dom_operation_notification_details.h"
#include "chrome/browser/debugger/devtools_manager.h"
+#include "chrome/browser/dom_operation_notification_details.h"
#include "chrome/browser/download/download_item.h"
#include "chrome/browser/download/download_shelf.h"
#include "chrome/browser/download/save_package.h"
@@ -54,20 +55,20 @@
#include "chrome/browser/extensions/extension_host.h"
#include "chrome/browser/extensions/extension_install_ui.h"
#include "chrome/browser/extensions/extension_message_service.h"
+#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_tabs_module.h"
#include "chrome/browser/extensions/extension_toolbar_model.h"
-#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/user_script_master.h"
-#include "chrome/browser/importer/importer.h"
#include "chrome/browser/importer/importer_data_types.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/io_thread.h"
#include "chrome/browser/net/url_request_mock_util.h"
#include "chrome/browser/platform_util.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/printing/print_job.h"
#include "chrome/browser/profiles/profile_manager.h"
-#include "chrome/browser/ssl/ssl_manager.h"
#include "chrome/browser/ssl/ssl_blocking_page.h"
+#include "chrome/browser/ssl/ssl_manager.h"
#include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h"
#include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h"
#include "chrome/browser/ui/find_bar/find_bar.h"
@@ -95,10 +96,9 @@
#include "content/browser/tab_contents/navigation_entry.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/tab_contents/tab_contents_view.h"
-#include "net/proxy/proxy_service.h"
#include "net/proxy/proxy_config_service_fixed.h"
+#include "net/proxy/proxy_service.h"
#include "net/url_request/url_request_context.h"
-#include "chrome/browser/automation/ui_controls.h"
#include "webkit/glue/password_form.h"
#if defined(OS_WIN)
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 10daa98..a9d212e 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -44,7 +44,7 @@
#include "chrome/browser/extensions/extension_host.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/history/top_sites.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/instant/instant_controller.h"
#include "chrome/browser/notifications/balloon.h"
#include "chrome/browser/notifications/balloon_collection.h"
diff --git a/chrome/browser/extensions/extension_bookmarks_module.h b/chrome/browser/extensions/extension_bookmarks_module.h
index a49a962..5d631e2 100644
--- a/chrome/browser/extensions/extension_bookmarks_module.h
+++ b/chrome/browser/extensions/extension_bookmarks_module.h
@@ -14,7 +14,7 @@
#include "base/singleton.h"
#include "chrome/browser/bookmarks/bookmark_model_observer.h"
#include "chrome/browser/extensions/extension_function.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/importer/importer_list.h"
#include "chrome/browser/ui/shell_dialogs.h"
#include "content/common/notification_observer.h"
diff --git a/chrome/browser/first_run/first_run.cc b/chrome/browser/first_run/first_run.cc
index d9d7864..8791709 100644
--- a/chrome/browser/first_run/first_run.cc
+++ b/chrome/browser/first_run/first_run.cc
@@ -4,13 +4,13 @@
#include "chrome/browser/first_run/first_run.h"
-#include "base/compiler_specific.h"
#include "base/command_line.h"
+#include "base/compiler_specific.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/utf_string_conversions.h"
#include "build/build_config.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/importer/importer_progress_dialog.h"
#include "chrome/browser/importer/importer_progress_observer.h"
#include "chrome/browser/metrics/user_metrics.h"
diff --git a/chrome/browser/first_run/first_run_win.cc b/chrome/browser/first_run/first_run_win.cc
index 6b16485..0f6a0f5 100644
--- a/chrome/browser/first_run/first_run_win.cc
+++ b/chrome/browser/first_run/first_run_win.cc
@@ -24,7 +24,7 @@
#include "base/win/windows_version.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_updater.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/importer/importer_progress_dialog.h"
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/process_singleton.h"
diff --git a/chrome/browser/importer/firefox2_importer.h b/chrome/browser/importer/firefox2_importer.h
index 2c6412c..eb52f42 100644
--- a/chrome/browser/importer/firefox2_importer.h
+++ b/chrome/browser/importer/firefox2_importer.h
@@ -12,8 +12,8 @@
#include "base/compiler_specific.h"
#include "base/file_path.h"
#include "base/gtest_prod_util.h"
-#include "chrome/browser/importer/importer.h"
#include "chrome/browser/importer/importer_data_types.h"
+#include "chrome/browser/importer/importer_host.h"
class TemplateURL;
diff --git a/chrome/browser/importer/firefox3_importer.h b/chrome/browser/importer/firefox3_importer.h
index c5e3d8b..2202ce3 100644
--- a/chrome/browser/importer/firefox3_importer.h
+++ b/chrome/browser/importer/firefox3_importer.h
@@ -14,8 +14,8 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/file_path.h"
-#include "chrome/browser/importer/importer.h"
#include "chrome/browser/importer/importer_data_types.h"
+#include "chrome/browser/importer/importer_host.h"
#include "googleurl/src/gurl.h"
struct sqlite3;
diff --git a/chrome/browser/importer/ie_importer.h b/chrome/browser/importer/ie_importer.h
index dc732c4..ce291b9 100644
--- a/chrome/browser/importer/ie_importer.h
+++ b/chrome/browser/importer/ie_importer.h
@@ -12,7 +12,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
class IEImporter : public Importer {
public:
diff --git a/chrome/browser/importer/importer_bridge.cc b/chrome/browser/importer/importer_bridge.cc
index e1ddf2a1..03feb7c 100644
--- a/chrome/browser/importer/importer_bridge.cc
+++ b/chrome/browser/importer/importer_bridge.cc
@@ -1,16 +1,16 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/importer/importer_bridge.h"
#include "base/scoped_ptr.h"
-#include "base/string_number_conversions.h"
#include "base/string16.h"
+#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/history/history_types.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#if defined(OS_WIN)
#include "chrome/browser/password_manager/ie7_password.h"
#endif
diff --git a/chrome/browser/importer/importer.cc b/chrome/browser/importer/importer_host.cc
index 4851208..9c04299 100644
--- a/chrome/browser/importer/importer.cc
+++ b/chrome/browser/importer/importer_host.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "base/threading/thread.h"
#include "base/utf_string_conversions.h"
diff --git a/chrome/browser/importer/importer.h b/chrome/browser/importer/importer_host.h
index dfae6d8..0736514 100644
--- a/chrome/browser/importer/importer.h
+++ b/chrome/browser/importer/importer_host.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_IMPORTER_IMPORTER_H_
-#define CHROME_BROWSER_IMPORTER_IMPORTER_H_
+#ifndef CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_
+#define CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_
#pragma once
#include <string>
@@ -434,4 +434,4 @@ class Importer : public base::RefCountedThreadSafe<Importer> {
DISALLOW_COPY_AND_ASSIGN(Importer);
};
-#endif // CHROME_BROWSER_IMPORTER_IMPORTER_H_
+#endif // CHROME_BROWSER_IMPORTER_IMPORTER_HOST_H_
diff --git a/chrome/browser/importer/importer_unittest.cc b/chrome/browser/importer/importer_unittest.cc
index fe38155..c66f5e2 100644
--- a/chrome/browser/importer/importer_unittest.cc
+++ b/chrome/browser/importer/importer_unittest.cc
@@ -5,6 +5,7 @@
#include "build/build_config.h"
#if defined(OS_WIN)
+// The order of these includes is important.
#include <windows.h>
#include <unknwn.h>
#include <intshcut.h>
@@ -25,9 +26,9 @@
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/history/history_types.h"
-#include "chrome/browser/importer/importer.h"
#include "chrome/browser/importer/importer_bridge.h"
#include "chrome/browser/importer/importer_data_types.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/importer/importer_progress_observer.h"
#include "chrome/browser/search_engines/template_url.h"
#include "chrome/common/chrome_paths.h"
diff --git a/chrome/browser/importer/mork_reader.cc b/chrome/browser/importer/mork_reader.cc
index ce1ffe8..916c06c 100644
--- a/chrome/browser/importer/mork_reader.cc
+++ b/chrome/browser/importer/mork_reader.cc
@@ -53,8 +53,8 @@
#include "base/values.h"
#include "chrome/browser/history/history_types.h"
#include "chrome/browser/importer/firefox_importer_utils.h"
-#include "chrome/browser/importer/importer.h"
#include "chrome/browser/importer/importer_bridge.h"
+#include "chrome/browser/importer/importer_host.h"
using base::Time;
diff --git a/chrome/browser/importer/profile_writer.cc b/chrome/browser/importer/profile_writer.cc
index 4c7bed8..99d9d49 100644
--- a/chrome/browser/importer/profile_writer.cc
+++ b/chrome/browser/importer/profile_writer.cc
@@ -8,7 +8,7 @@
#include "base/threading/thread.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/password_manager/password_store.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
diff --git a/chrome/browser/importer/safari_importer.h b/chrome/browser/importer/safari_importer.h
index a5150ae..4bbc1cc 100644
--- a/chrome/browser/importer/safari_importer.h
+++ b/chrome/browser/importer/safari_importer.h
@@ -14,8 +14,8 @@
#include "base/compiler_specific.h"
#include "base/file_path.h"
#include "base/gtest_prod_util.h"
-#include "chrome/browser/importer/importer.h"
#include "chrome/browser/importer/importer_data_types.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/common/sqlite_utils.h"
#if __OBJC__
diff --git a/chrome/browser/importer/toolbar_importer.h b/chrome/browser/importer/toolbar_importer.h
index 8e5e322..608fc12 100644
--- a/chrome/browser/importer/toolbar_importer.h
+++ b/chrome/browser/importer/toolbar_importer.h
@@ -16,8 +16,8 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/string16.h"
-#include "chrome/browser/importer/importer.h"
#include "chrome/browser/importer/importer_data_types.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/common/net/url_fetcher.h"
class ImporterBridge;
diff --git a/chrome/browser/importer/toolbar_importer_unittest.cc b/chrome/browser/importer/toolbar_importer_unittest.cc
index 6b042de..d9be3fa 100644
--- a/chrome/browser/importer/toolbar_importer_unittest.cc
+++ b/chrome/browser/importer/toolbar_importer_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,7 +11,7 @@
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/first_run/first_run.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/importer/toolbar_importer.h"
#include "chrome/common/libxml_utils.h"
#include "googleurl/src/gurl.h"
diff --git a/chrome/browser/ui/cocoa/importer/import_dialog_cocoa.h b/chrome/browser/ui/cocoa/importer/import_dialog_cocoa.h
index 74564f0..2d20602c 100644
--- a/chrome/browser/ui/cocoa/importer/import_dialog_cocoa.h
+++ b/chrome/browser/ui/cocoa/importer/import_dialog_cocoa.h
@@ -9,7 +9,7 @@
#import <Cocoa/Cocoa.h>
#include "base/scoped_nsobject.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
class Profile;
class ImporterListObserverBridge;
diff --git a/chrome/browser/ui/cocoa/importer/import_dialog_cocoa_unittest.mm b/chrome/browser/ui/cocoa/importer/import_dialog_cocoa_unittest.mm
index 2a76dfb..e9cf7aa 100644
--- a/chrome/browser/ui/cocoa/importer/import_dialog_cocoa_unittest.mm
+++ b/chrome/browser/ui/cocoa/importer/import_dialog_cocoa_unittest.mm
@@ -5,7 +5,7 @@
#import <Cocoa/Cocoa.h>
#include "base/scoped_nsobject.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#import "chrome/browser/ui/cocoa/browser_test_helper.h"
#import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
#import "chrome/browser/ui/cocoa/importer/import_dialog_cocoa.h"
diff --git a/chrome/browser/ui/cocoa/importer/import_lock_dialog_cocoa.mm b/chrome/browser/ui/cocoa/importer/import_lock_dialog_cocoa.mm
index ab53984..29b7ad0 100644
--- a/chrome/browser/ui/cocoa/importer/import_lock_dialog_cocoa.mm
+++ b/chrome/browser/ui/cocoa/importer/import_lock_dialog_cocoa.mm
@@ -6,7 +6,7 @@
#include "base/message_loop.h"
#include "base/scoped_nsobject.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/ui/cocoa/importer/import_progress_dialog_cocoa.mm b/chrome/browser/ui/cocoa/importer/import_progress_dialog_cocoa.mm
index 2dbc683f..2dda0f4 100644
--- a/chrome/browser/ui/cocoa/importer/import_progress_dialog_cocoa.mm
+++ b/chrome/browser/ui/cocoa/importer/import_progress_dialog_cocoa.mm
@@ -10,7 +10,7 @@
#import "base/scoped_nsobject.h"
#import "base/sys_string_conversions.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/importer/importer_observer.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
diff --git a/chrome/browser/ui/gtk/importer/import_dialog_gtk.cc b/chrome/browser/ui/gtk/importer/import_dialog_gtk.cc
index 52feb82..afd46ba 100644
--- a/chrome/browser/ui/gtk/importer/import_dialog_gtk.cc
+++ b/chrome/browser/ui/gtk/importer/import_dialog_gtk.cc
@@ -8,6 +8,7 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/importer/importer_data_types.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/importer/importer_progress_dialog.h"
#include "chrome/browser/ui/gtk/gtk_util.h"
#include "grit/generated_resources.h"
@@ -21,7 +22,7 @@ gboolean IsChecked(GtkWidget* widget) {
return gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
}
-} // namespace
+} // namespace
// static
void ImportDialogGtk::Show(GtkWindow* parent, Profile* profile,
diff --git a/chrome/browser/ui/gtk/importer/import_dialog_gtk.h b/chrome/browser/ui/gtk/importer/import_dialog_gtk.h
index e2e37f1..136b74e 100644
--- a/chrome/browser/ui/gtk/importer/import_dialog_gtk.h
+++ b/chrome/browser/ui/gtk/importer/import_dialog_gtk.h
@@ -8,18 +8,25 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
-#include "chrome/browser/importer/importer.h"
+#include "base/ref_counted.h"
+#include "chrome/browser/importer/importer_list.h"
#include "chrome/browser/importer/importer_observer.h"
#include "ui/base/gtk/gtk_signal.h"
+class ImporterHost;
class Profile;
+typedef struct _GtkWidget GtkWidget;
+typedef struct _GtkWindow GtkWindow;
+
+// ImportDialogGtk presents the dialog that allows the user to select what to
+// import from other browsers.
class ImportDialogGtk : public ImporterList::Observer,
public ImporterObserver {
public:
- // Displays the import box to import data from another browser into |profile|
- // |initial_state| is a bitmask of ImportItems. Each checkbox for the bits in
- // is checked.
+ // Displays the import box to import data from another browser into |profile|.
+ // |initial_state| is a bitmask of importer::ImportItem.
+ // Each checkbox for the bits in |initial_state| is checked.
static void Show(GtkWindow* parent, Profile* profile, uint16 initial_state);
private:
diff --git a/chrome/browser/ui/gtk/importer/import_lock_dialog_gtk.cc b/chrome/browser/ui/gtk/importer/import_lock_dialog_gtk.cc
index ff607b0..005ca04 100644
--- a/chrome/browser/ui/gtk/importer/import_lock_dialog_gtk.cc
+++ b/chrome/browser/ui/gtk/importer/import_lock_dialog_gtk.cc
@@ -7,7 +7,7 @@
#include <gtk/gtk.h>
#include "base/message_loop.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/gtk/gtk_util.h"
#include "grit/chromium_strings.h"
diff --git a/chrome/browser/ui/gtk/importer/import_progress_dialog_gtk.cc b/chrome/browser/ui/gtk/importer/import_progress_dialog_gtk.cc
index f160f3a..5043f5f 100644
--- a/chrome/browser/ui/gtk/importer/import_progress_dialog_gtk.cc
+++ b/chrome/browser/ui/gtk/importer/import_progress_dialog_gtk.cc
@@ -9,7 +9,7 @@
#include <string>
#include "base/utf_string_conversions.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/importer/importer_observer.h"
#include "chrome/browser/ui/gtk/gtk_util.h"
#include "grit/chromium_strings.h"
diff --git a/chrome/browser/ui/views/importer/import_dialog_view.h b/chrome/browser/ui/views/importer/import_dialog_view.h
index 1fa678c..1a5ec93 100644
--- a/chrome/browser/ui/views/importer/import_dialog_view.h
+++ b/chrome/browser/ui/views/importer/import_dialog_view.h
@@ -12,7 +12,7 @@
#include "base/compiler_specific.h"
#include "base/ref_counted.h"
#include "base/string16.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/importer/importer_observer.h"
#include "ui/base/models/combobox_model.h"
#include "views/controls/button/native_button.h"
diff --git a/chrome/browser/ui/views/importer/import_lock_dialog_view.cc b/chrome/browser/ui/views/importer/import_lock_dialog_view.cc
index 99195ba..99742b3 100644
--- a/chrome/browser/ui/views/importer/import_lock_dialog_view.cc
+++ b/chrome/browser/ui/views/importer/import_lock_dialog_view.cc
@@ -6,7 +6,7 @@
#include "base/message_loop.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "grit/locale_settings.h"
diff --git a/chrome/browser/ui/views/importer/import_progress_dialog_view.cc b/chrome/browser/ui/views/importer/import_progress_dialog_view.cc
index 5027ce4..36657e2 100644
--- a/chrome/browser/ui/views/importer/import_progress_dialog_view.cc
+++ b/chrome/browser/ui/views/importer/import_progress_dialog_view.cc
@@ -5,7 +5,7 @@
#include "chrome/browser/ui/views/importer/import_progress_dialog_view.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/importer/importer_observer.h"
#include "chrome/browser/importer/importer_progress_dialog.h"
#include "grit/chromium_strings.h"
diff --git a/chrome/browser/ui/webui/options/import_data_handler.cc b/chrome/browser/ui/webui/options/import_data_handler.cc
index 139d25a..ba5f8d8 100644
--- a/chrome/browser/ui/webui/options/import_data_handler.cc
+++ b/chrome/browser/ui/webui/options/import_data_handler.cc
@@ -15,7 +15,7 @@
#include "base/threading/thread_restrictions.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
-#include "chrome/browser/importer/importer.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/profiles/profile.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi
index 0292994..7662e1d 100644
--- a/chrome/chrome_browser.gypi
+++ b/chrome/chrome_browser.gypi
@@ -1221,12 +1221,12 @@
'browser/importer/firefox_proxy_settings.h',
'browser/importer/ie_importer.cc',
'browser/importer/ie_importer.h',
- 'browser/importer/importer.cc',
- 'browser/importer/importer.h',
'browser/importer/importer_bridge.cc',
'browser/importer/importer_bridge.h',
'browser/importer/importer_data_types.cc',
'browser/importer/importer_data_types.h',
+ 'browser/importer/importer_host.cc',
+ 'browser/importer/importer_host.h',
'browser/importer/importer_list.cc',
'browser/importer/importer_list.h',
'browser/importer/importer_messages.cc',
diff --git a/chrome/profile_import/profile_import_thread.cc b/chrome/profile_import/profile_import_thread.cc
index 2c44614..14c66f6 100644
--- a/chrome/profile_import/profile_import_thread.cc
+++ b/chrome/profile_import/profile_import_thread.cc
@@ -7,9 +7,9 @@
#include <algorithm>
#include "base/values.h"
-#include "chrome/browser/importer/importer.h"
#include "chrome/browser/importer/importer_bridge.h"
#include "chrome/browser/importer/importer_data_types.h"
+#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/importer/importer_list.h"
#include "chrome/browser/importer/importer_messages.h"
#include "chrome/browser/search_engines/template_url.h"