diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-05 20:17:07 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-05 20:17:07 +0000 |
commit | b5bb35f1ddd2e113089e329b024a4fb843d038fb (patch) | |
tree | 7fc3944bb8cbcf56e7adcbf11e15929740fccb69 /chrome/browser/tab_contents/navigation_controller.cc | |
parent | 031c7baebf04ef2351953c62e494057835bf5277 (diff) | |
download | chromium_src-b5bb35f1ddd2e113089e329b024a4fb843d038fb.zip chromium_src-b5bb35f1ddd2e113089e329b024a4fb843d038fb.tar.gz chromium_src-b5bb35f1ddd2e113089e329b024a4fb843d038fb.tar.bz2 |
Move resource_message_filter and resource_request_details to the renderer_host.
Make the repost form warning portable by abstracting the show function from
the view. Rename the Windows repost form warning and move it to browser/views.
This also fixes a comment in browser_process.h
Review URL: http://codereview.chromium.org/20066
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9242 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/navigation_controller.cc')
-rw-r--r-- | chrome/browser/tab_contents/navigation_controller.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/tab_contents/navigation_controller.cc b/chrome/browser/tab_contents/navigation_controller.cc index 1e567f1..6b94764 100644 --- a/chrome/browser/tab_contents/navigation_controller.cc +++ b/chrome/browser/tab_contents/navigation_controller.cc @@ -11,6 +11,7 @@ #include "chrome/browser/dom_ui/dom_ui_host.h" #include "chrome/browser/sessions/session_types.h" #include "chrome/browser/tab_contents/navigation_entry.h" +#include "chrome/browser/tab_contents/repost_form_warning.h" #include "chrome/browser/tab_contents/site_instance.h" #include "chrome/common/navigation_types.h" #include "chrome/common/notification_service.h" @@ -216,10 +217,10 @@ void NavigationController::Reload(bool check_for_repost) { if (check_for_repost_ && check_for_repost && current_index != -1 && GetEntryAtIndex(current_index)->has_post_data()) { // The user is asking to reload a page with POST data. Prompt to make sure - // they really want to do this. If they do, RepostFormWarningDialog calls us - // back with ReloadDontCheckForRepost. + // they really want to do this. If they do, the dialog will call us back + // with check_for_repost = false. active_contents_->Activate(); - RepostFormWarningDialog::RunRepostFormWarningDialog(this); + RunRepostFormWarningDialog(this); } else { // Base the navigation on where we are now... int current_index = GetCurrentEntryIndex(); |