diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 21:49:38 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 21:49:38 +0000 |
commit | 5fac9623175cb7bda27ccc079ea19b3f90471149 (patch) | |
tree | 9d713762548943c72d2b699146dda5d46512fc04 /chrome/browser | |
parent | 0967bb557cdfe4847074f49095bba57170ca5439 (diff) | |
download | chromium_src-5fac9623175cb7bda27ccc079ea19b3f90471149.zip chromium_src-5fac9623175cb7bda27ccc079ea19b3f90471149.tar.gz chromium_src-5fac9623175cb7bda27ccc079ea19b3f90471149.tar.bz2 |
Enable render_widget_host, render_view_host and backing_store. Remove the RenderWidgetHostManager from the scaffolding.
Review URL: http://codereview.chromium.org/20044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9173 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/automation/automation_provider.cc | 2 | ||||
-rw-r--r-- | chrome/browser/browser.scons | 1 | ||||
-rw-r--r-- | chrome/browser/browser_about_handler.cc | 1 | ||||
-rw-r--r-- | chrome/browser/browser_prefs.cc | 2 | ||||
-rw-r--r-- | chrome/browser/renderer_host/render_view_host.cc | 17 | ||||
-rw-r--r-- | chrome/browser/renderer_host/render_view_host.h | 1 | ||||
-rw-r--r-- | chrome/browser/renderer_host/render_view_host_delegate.h | 2 | ||||
-rw-r--r-- | chrome/browser/tab_contents/interstitial_page.cc | 2 | ||||
-rw-r--r-- | chrome/browser/tab_contents/interstitial_page.h | 1 | ||||
-rw-r--r-- | chrome/browser/tab_contents/web_contents.h | 4 |
10 files changed, 22 insertions, 11 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index a613f78..04ca9d0 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -4,7 +4,9 @@ #include "chrome/browser/automation/automation_provider.h" +#include "base/message_loop.h" #include "base/path_service.h" +#include "base/thread.h" #include "chrome/app/chrome_dll_resource.h" #include "chrome/browser/app_modal_dialog_queue.h" #include "chrome/browser/automation/automation_provider_list.h" diff --git a/chrome/browser/browser.scons b/chrome/browser/browser.scons index d5ba3c7..1513494 100644 --- a/chrome/browser/browser.scons +++ b/chrome/browser/browser.scons @@ -756,7 +756,6 @@ if not env.Bit('windows'): 'printing/printed_page.cc', 'printing/printer_query.cc', 'printing/win_printing_context.cc', - 'renderer_host/render_view_host.cc', 'renderer_host/cross_site_resource_handler.cc', 'renderer_host/resource_dispatcher_host.cc', 'repost_form_warning_dialog.cc', diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc index 075a8b0..a9028d7 100644 --- a/chrome/browser/browser_about_handler.cc +++ b/chrome/browser/browser_about_handler.cc @@ -12,6 +12,7 @@ #include "base/stats_table.h" #include "base/string_piece.h" #include "base/string_util.h" +#include "base/thread.h" #include "base/tracked_objects.h" #include "chrome/app/locales/locale_settings.h" #include "chrome/browser/browser.h" diff --git a/chrome/browser/browser_prefs.cc b/chrome/browser/browser_prefs.cc index 57bec82..bcd754c 100644 --- a/chrome/browser/browser_prefs.cc +++ b/chrome/browser/browser_prefs.cc @@ -62,8 +62,8 @@ void RegisterAllPrefs(PrefService* user_prefs, PrefService* local_state) { DownloadManager::RegisterUserPrefs(user_prefs); PasswordManager::RegisterUserPrefs(user_prefs); SSLManager::RegisterUserPrefs(user_prefs); - TabContents::RegisterUserPrefs(user_prefs); #endif + TabContents::RegisterUserPrefs(user_prefs); TemplateURLPrepopulateData::RegisterUserPrefs(user_prefs); WebContents::RegisterUserPrefs(user_prefs); } diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc index b6629e9..b6dd5a9 100644 --- a/chrome/browser/renderer_host/render_view_host.cc +++ b/chrome/browser/renderer_host/render_view_host.cc @@ -13,14 +13,12 @@ #include "chrome/app/result_codes.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/cross_site_request_manager.h" -#include "chrome/browser/debugger/debugger_wrapper.h" #include "chrome/browser/profile.h" #include "chrome/browser/metrics/user_metrics.h" +#include "chrome/browser/renderer_host/renderer_security_policy.h" #include "chrome/browser/renderer_host/render_process_host.h" #include "chrome/browser/renderer_host/render_view_host_delegate.h" #include "chrome/browser/renderer_host/render_widget_host.h" -#include "chrome/browser/renderer_host/render_widget_host_view.h" -#include "chrome/browser/renderer_host/renderer_security_policy.h" #include "chrome/browser/tab_contents/navigation_entry.h" #include "chrome/browser/tab_contents/site_instance.h" #include "chrome/browser/tab_contents/web_contents.h" @@ -28,6 +26,13 @@ #include "chrome/common/thumbnail_score.h" #include "net/base/net_util.h" #include "skia/include/SkBitmap.h" +#include "webkit/glue/autofill_form.h" + +#if defined(OS_WIN) +// TODO(port): remove these when stubs are filled in +#include "chrome/browser/debugger/debugger_wrapper.h" +#include "chrome/browser/renderer_host/render_widget_host_view.h" +#endif using base::TimeDelta; @@ -79,12 +84,13 @@ RenderViewHost::RenderViewHost(SiteInstance* instance, base::WaitableEvent* modal_dialog_event) : RenderWidgetHost(instance->GetProcess(), routing_id), instance_(instance), - enable_dom_ui_bindings_(false), - enable_external_host_bindings_(false), delegate_(delegate), renderer_initialized_(false), waiting_for_drag_context_response_(false), debugger_attached_(false), + enable_dom_ui_bindings_(false), + pending_request_id_(0), + enable_external_host_bindings_(false), modal_dialog_count_(0), navigations_suspended_(false), suspended_nav_message_(NULL), @@ -1084,7 +1090,6 @@ void RenderViewHost::OnMsgRunJavaScriptMessage( StopHangMonitorTimeout(); if (modal_dialog_count_++ == 0) modal_dialog_event_->Signal(); - bool did_suppress_message = false; delegate_->RunJavaScriptMessage(message, default_prompt, flags, reply_msg, &are_javascript_messages_suppressed_); } diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h index ea44f01..0cd052e 100644 --- a/chrome/browser/renderer_host/render_view_host.h +++ b/chrome/browser/renderer_host/render_view_host.h @@ -21,6 +21,7 @@ #include "webkit/glue/password_form_dom_manager.h" #include "webkit/glue/window_open_disposition.h" +class AutofillForm; class NavigationEntry; class RenderViewHostDelegate; class SiteInstance; diff --git a/chrome/browser/renderer_host/render_view_host_delegate.h b/chrome/browser/renderer_host/render_view_host_delegate.h index 5a39b91..27662d7 100644 --- a/chrome/browser/renderer_host/render_view_host_delegate.h +++ b/chrome/browser/renderer_host/render_view_host_delegate.h @@ -9,11 +9,11 @@ #include <vector> #include "base/basictypes.h" -#include "chrome/browser/autofill_manager.h" #include "chrome/common/render_messages.h" #include "net/base/load_states.h" #include "webkit/glue/webpreferences.h" +class AutofillForm; class NavigationEntry; class Profile; class RenderProcessHost; diff --git a/chrome/browser/tab_contents/interstitial_page.cc b/chrome/browser/tab_contents/interstitial_page.cc index c7e7d49..3351684 100644 --- a/chrome/browser/tab_contents/interstitial_page.cc +++ b/chrome/browser/tab_contents/interstitial_page.cc @@ -4,6 +4,8 @@ #include "chrome/browser/tab_contents/interstitial_page.h" +#include "base/message_loop.h" +#include "base/thread.h" #include "chrome/browser/browser.h" #include "chrome/browser/browser_list.h" #include "chrome/browser/browser_resources.h" diff --git a/chrome/browser/tab_contents/interstitial_page.h b/chrome/browser/tab_contents/interstitial_page.h index eb18b60..d51d099 100644 --- a/chrome/browser/tab_contents/interstitial_page.h +++ b/chrome/browser/tab_contents/interstitial_page.h @@ -11,6 +11,7 @@ #include "chrome/common/notification_registrar.h" #include "googleurl/src/gurl.h" +class MessageLoop; class NavigationEntry; class WebContents; diff --git a/chrome/browser/tab_contents/web_contents.h b/chrome/browser/tab_contents/web_contents.h index 99f3c8c..939fe67 100644 --- a/chrome/browser/tab_contents/web_contents.h +++ b/chrome/browser/tab_contents/web_contents.h @@ -8,6 +8,8 @@ #include "base/basictypes.h" #include "base/hash_tables.h" #include "chrome/browser/cancelable_request.h" +#include "chrome/browser/renderer_host/render_view_host_delegate.h" +#include "chrome/browser/tab_contents/render_view_host_manager.h" #include "net/base/load_states.h" #include "webkit/glue/password_form.h" #include "webkit/glue/webpreferences.h" @@ -19,9 +21,7 @@ #include "chrome/browser/download/save_package.h" #include "chrome/browser/fav_icon_helper.h" #include "chrome/browser/printing/print_view_manager.h" -#include "chrome/browser/renderer_host/render_view_host_delegate.h" #include "chrome/browser/shell_dialogs.h" -#include "chrome/browser/tab_contents/render_view_host_manager.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/common/gears_api.h" #endif |