summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r--chrome/renderer/render_view.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index c51e948..8b4d143 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -98,6 +98,10 @@ class PluginInstance;
class FullscreenContainer;
}
+namespace safe_browsing {
+class PhishingClassifierDelegate;
+}
+
namespace webkit_glue {
class ImageResourceFetcher;
struct FileUploadData;
@@ -223,6 +227,12 @@ class RenderView : public RenderWidget,
return page_click_tracker_.get();
}
+ // May be NULL if client-side phishing detection is disabled.
+ safe_browsing::PhishingClassifierDelegate*
+ phishing_classifier_delegate() const {
+ return phishing_delegate_.get();
+ }
+
// Returns true if we should display scrollbars for the given view size and
// false if the scrollbars should be hidden.
bool should_display_scrollbars(int width, int height) const {
@@ -1350,6 +1360,10 @@ class RenderView : public RenderWidget,
// Responsible for sending page load related histograms.
PageLoadHistograms page_load_histograms_;
+ // Handles the interaction between the RenderView and the phishing
+ // classifier.
+ scoped_ptr<safe_browsing::PhishingClassifierDelegate> phishing_delegate_;
+
// Misc ----------------------------------------------------------------------
// The current and pending file chooser completion objects. If the queue is