summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-23 01:36:47 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-23 01:36:47 +0000
commit26b5e32067f119d2d69e83b319db7f52fdc48ede (patch)
treea213e3b49f2843f865ee950c6f980c791e38f582 /chrome/browser/safe_browsing
parent290fb65488853449fee7c3794179ffa5855a72a0 (diff)
downloadchromium_src-26b5e32067f119d2d69e83b319db7f52fdc48ede.zip
chromium_src-26b5e32067f119d2d69e83b319db7f52fdc48ede.tar.gz
chromium_src-26b5e32067f119d2d69e83b319db7f52fdc48ede.tar.bz2
Change most of the methods of WebContentsObserver to take a content::WebContents instead of a TabContents, and update all the dependent code.
BUG=98716 Review URL: http://codereview.chromium.org/9022023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115664 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing')
-rw-r--r--chrome/browser/safe_browsing/client_side_detection_host.cc3
-rw-r--r--chrome/browser/safe_browsing/client_side_detection_host.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/safe_browsing/client_side_detection_host.cc b/chrome/browser/safe_browsing/client_side_detection_host.cc
index d4a7721..c8e8289 100644
--- a/chrome/browser/safe_browsing/client_side_detection_host.cc
+++ b/chrome/browser/safe_browsing/client_side_detection_host.cc
@@ -36,6 +36,7 @@
#include "googleurl/src/gurl.h"
using content::BrowserThread;
+using content::WebContents;
namespace safe_browsing {
@@ -357,7 +358,7 @@ void ClientSideDetectionHost::OnSafeBrowsingHit(
}
}
-void ClientSideDetectionHost::TabContentsDestroyed(TabContents* tab) {
+void ClientSideDetectionHost::WebContentsDestroyed(WebContents* tab) {
DCHECK(tab);
// Tell any pending classification request that it is being canceled.
if (classification_request_.get()) {
diff --git a/chrome/browser/safe_browsing/client_side_detection_host.h b/chrome/browser/safe_browsing/client_side_detection_host.h
index ad769b7..6943732 100644
--- a/chrome/browser/safe_browsing/client_side_detection_host.h
+++ b/chrome/browser/safe_browsing/client_side_detection_host.h
@@ -55,7 +55,7 @@ class ClientSideDetectionHost : public content::WebContentsObserver,
protected:
// From content::WebContentsObserver.
- virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE;
+ virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE;
private:
friend class ClientSideDetectionHostTest;