summaryrefslogtreecommitdiffstats
path: root/chrome/browser/modal_html_dialog_delegate.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-04 07:58:34 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-04 07:58:34 +0000
commit57c6a6579cf274fe37d6196931a3034d90da7113 (patch)
treeec42313580156ccc039b5fee714ee12259cb08ee /chrome/browser/modal_html_dialog_delegate.cc
parentb23c9e1f05d474adc327c85d87eacc77554976e0 (diff)
downloadchromium_src-57c6a6579cf274fe37d6196931a3034d90da7113.zip
chromium_src-57c6a6579cf274fe37d6196931a3034d90da7113.tar.gz
chromium_src-57c6a6579cf274fe37d6196931a3034d90da7113.tar.bz2
Replace all occurrances of WebContents with TabContents.
Review URL: http://codereview.chromium.org/99177 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15194 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/modal_html_dialog_delegate.cc')
-rw-r--r--chrome/browser/modal_html_dialog_delegate.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/modal_html_dialog_delegate.cc b/chrome/browser/modal_html_dialog_delegate.cc
index 54be702..12cc713 100644
--- a/chrome/browser/modal_html_dialog_delegate.cc
+++ b/chrome/browser/modal_html_dialog_delegate.cc
@@ -6,18 +6,18 @@
#include "chrome/browser/browser_list.h"
#include "chrome/browser/renderer_host/render_view_host.h"
-#include "chrome/browser/tab_contents/web_contents.h"
+#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/common/notification_service.h"
ModalHtmlDialogDelegate::ModalHtmlDialogDelegate(
const GURL& url, int width, int height, const std::string& json_arguments,
- IPC::Message* sync_result, WebContents* contents)
+ IPC::Message* sync_result, TabContents* contents)
: contents_(contents),
sync_response_(sync_result) {
- // Listen for when the WebContents or its renderer dies.
+ // Listen for when the TabContents or its renderer dies.
NotificationService::current()->
- AddObserver(this, NotificationType::WEB_CONTENTS_DISCONNECTED,
- Source<WebContents>(contents_));
+ AddObserver(this, NotificationType::TAB_CONTENTS_DISCONNECTED,
+ Source<TabContents>(contents_));
// This information is needed to show the dialog HTML content.
params_.url = url;
@@ -33,8 +33,8 @@ ModalHtmlDialogDelegate::~ModalHtmlDialogDelegate() {
void ModalHtmlDialogDelegate::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK(type == NotificationType::WEB_CONTENTS_DISCONNECTED);
- DCHECK(Source<WebContents>(source).ptr() == contents_);
+ DCHECK(type == NotificationType::TAB_CONTENTS_DISCONNECTED);
+ DCHECK(Source<TabContents>(source).ptr() == contents_);
RemoveObserver();
}
@@ -56,7 +56,7 @@ std::string ModalHtmlDialogDelegate::GetDialogArgs() const {
}
void ModalHtmlDialogDelegate::OnDialogClosed(const std::string& json_retval) {
- // Our WebContents may have died before this point.
+ // Our TabContents may have died before this point.
if (contents_ && contents_->render_view_host()) {
contents_->render_view_host()->ModalHTMLDialogClosed(sync_response_,
json_retval);
@@ -72,7 +72,7 @@ void ModalHtmlDialogDelegate::RemoveObserver() {
NotificationService::current()->RemoveObserver(
this,
- NotificationType::WEB_CONTENTS_DISCONNECTED,
- Source<WebContents>(contents_));
+ NotificationType::TAB_CONTENTS_DISCONNECTED,
+ Source<TabContents>(contents_));
contents_ = NULL; // No longer safe to access.
}