Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4703)

Unified Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 7831075: Delegating the "are images allowed" decision to renderer. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Test build fixes. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.h
diff --git a/chrome/renderer/chrome_content_renderer_client.h b/chrome/renderer/chrome_content_renderer_client.h
index 990fb2046d72e0c28c443033614b552ecb4f8deb..45b0e16e57f877e9c6d7550a8a75bb51fbc78eac 100644
--- a/chrome/renderer/chrome_content_renderer_client.h
+++ b/chrome/renderer/chrome_content_renderer_client.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/string16.h"
+#include "chrome/common/content_settings.h"
#include "content/public/renderer/content_renderer_client.h"
class ChromeRenderProcessObserver;
@@ -104,6 +105,9 @@ class ChromeContentRendererClient : public content::ContentRendererClient {
// and start over.
void OnPurgeMemory();
+ void SetImageSettingRules(
+ const ContentSettingsForOneType* image_setting_rules);
+
private:
WebKit::WebPlugin* CreatePlugin(
content::RenderView* render_view,
@@ -145,6 +149,10 @@ class ChromeContentRendererClient : public content::ContentRendererClient {
SpellCheckProvider* spellcheck_provider_;
scoped_ptr<VisitedLinkSlave> visited_link_slave_;
scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_;
+ // Owned by |ChromeRenderProcessObserver|. A pointer to the image setting
+ // rules is kept here so that we're able to set it in the tests, without
+ // creating a |ChromeRenderProcessObserver|.
Bernhard Bauer 2011/10/18 13:14:31 So, if there is no ChromeRenderProcessObserver, it
marja 2011/10/19 16:56:35 It was used by ChromeRenderViewTest.Images(Allowed
+ const ContentSettingsForOneType* image_setting_rules_;
};
} // namespace chrome
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698