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

Unified Diff: chrome/renderer/render_view.h

Issue 1744003: Send content settings based on the URL to the renderer instead of just the host. (Closed)
Patch Set: nits Created 10 years, 8 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/renderer/render_thread.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.h
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index 837c61737de0c0aaf67444f833e2f05ee7c2e3f2..3a0b497625b3a992bc7f4402f518d82b67f0acb4 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -549,8 +549,8 @@ class RenderView : public RenderWidget,
#endif
FRIEND_TEST(RenderViewTest, JSBlockSentAfterPageLoad);
- typedef std::map<std::string, ContentSettings> HostContentSettings;
- typedef std::map<std::string, int> HostZoomLevels;
+ typedef std::map<GURL, ContentSettings> HostContentSettings;
+ typedef std::map<GURL, int> HostZoomLevels;
explicit RenderView(RenderThreadBase* render_thread,
const WebPreferences& webkit_preferences,
@@ -653,10 +653,10 @@ class RenderView : public RenderWidget,
void OnStopFinding(const ViewMsg_StopFinding_Params& params);
void OnFindReplyAck();
void OnDeterminePageLanguage();
- void OnSetContentSettingsForLoadingHost(
- std::string host, const ContentSettings& content_settings);
+ void OnSetContentSettingsForLoadingURL(
+ const GURL& url, const ContentSettings& content_settings);
void OnZoom(PageZoom::Function function);
- void OnSetZoomLevelForLoadingHost(std::string host, int zoom_level);
+ void OnSetZoomLevelForLoadingURL(const GURL& url, int zoom_level);
void OnSetPageEncoding(const std::string& encoding_name);
void OnResetPageEncodingToDefault();
void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url);
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698