Convert all of the WebContentsDelegate to use WebContents instead of TabContents, and update all the dependent code.

BUG=98716
TBR=joi
Review URL: http://codereview.chromium.org/9008047

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115932 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/repost_form_warning_controller.cc b/chrome/browser/repost_form_warning_controller.cc
index 3578221..b7a49adb 100644
--- a/chrome/browser/repost_form_warning_controller.cc
+++ b/chrome/browser/repost_form_warning_controller.cc
@@ -11,16 +11,18 @@
 #include "base/bind.h"
 #include "base/bind_helpers.h"
 #include "content/browser/tab_contents/navigation_controller.h"
-#include "content/browser/tab_contents/tab_contents.h"
 #include "content/public/browser/notification_source.h"
 #include "content/public/browser/notification_types.h"
+#include "content/public/browser/web_contents.h"
 #include "grit/generated_resources.h"
 #include "ui/base/l10n/l10n_util.h"
 
+using content::WebContents;
+
 RepostFormWarningController::RepostFormWarningController(
-    TabContents* tab_contents)
-    : TabModalConfirmDialogDelegate(tab_contents),
-      navigation_controller_(&tab_contents->GetController()) {
+    WebContents* web_contents)
+    : TabModalConfirmDialogDelegate(web_contents),
+      navigation_controller_(&web_contents->GetController()) {
   registrar_.Add(this, content::NOTIFICATION_REPOST_WARNING_SHOWN,
                  content::Source<NavigationController>(navigation_controller_));
 }