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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 FRIEND_TEST(RenderViewTest, OnPrintPages); 542 FRIEND_TEST(RenderViewTest, OnPrintPages);
543 FRIEND_TEST(RenderViewTest, PrintWithIframe); 543 FRIEND_TEST(RenderViewTest, PrintWithIframe);
544 FRIEND_TEST(RenderViewTest, PrintLayoutTest); 544 FRIEND_TEST(RenderViewTest, PrintLayoutTest);
545 FRIEND_TEST(RenderViewTest, OnHandleKeyboardEvent); 545 FRIEND_TEST(RenderViewTest, OnHandleKeyboardEvent);
546 FRIEND_TEST(RenderViewTest, InsertCharacters); 546 FRIEND_TEST(RenderViewTest, InsertCharacters);
547 #if defined(OS_MACOSX) 547 #if defined(OS_MACOSX)
548 FRIEND_TEST(RenderViewTest, MacTestCmdUp); 548 FRIEND_TEST(RenderViewTest, MacTestCmdUp);
549 #endif 549 #endif
550 FRIEND_TEST(RenderViewTest, JSBlockSentAfterPageLoad); 550 FRIEND_TEST(RenderViewTest, JSBlockSentAfterPageLoad);
551 551
552 typedef std::map<std::string, ContentSettings> HostContentSettings; 552 typedef std::map<GURL, ContentSettings> HostContentSettings;
553 typedef std::map<std::string, int> HostZoomLevels; 553 typedef std::map<GURL, int> HostZoomLevels;
554 554
555 explicit RenderView(RenderThreadBase* render_thread, 555 explicit RenderView(RenderThreadBase* render_thread,
556 const WebPreferences& webkit_preferences, 556 const WebPreferences& webkit_preferences,
557 int64 session_storage_namespace_id); 557 int64 session_storage_namespace_id);
558 558
559 // Initializes this view with the given parent and ID. The |routing_id| can be 559 // Initializes this view with the given parent and ID. The |routing_id| can be
560 // set to 'MSG_ROUTING_NONE' if the true ID is not yet known. In this case, 560 // set to 'MSG_ROUTING_NONE' if the true ID is not yet known. In this case,
561 // CompleteInit must be called later with the true ID. 561 // CompleteInit must be called later with the true ID.
562 void Init(gfx::NativeViewId parent, 562 void Init(gfx::NativeViewId parent,
563 int32 opener_id, 563 int32 opener_id,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 void OnSelectAll(); 646 void OnSelectAll();
647 void OnCopyImageAt(int x, int y); 647 void OnCopyImageAt(int x, int y);
648 void OnExecuteEditCommand(const std::string& name, const std::string& value); 648 void OnExecuteEditCommand(const std::string& name, const std::string& value);
649 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); 649 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands);
650 void OnSetupDevToolsClient(); 650 void OnSetupDevToolsClient();
651 void OnCancelDownload(int32 download_id); 651 void OnCancelDownload(int32 download_id);
652 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); 652 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&);
653 void OnStopFinding(const ViewMsg_StopFinding_Params& params); 653 void OnStopFinding(const ViewMsg_StopFinding_Params& params);
654 void OnFindReplyAck(); 654 void OnFindReplyAck();
655 void OnDeterminePageLanguage(); 655 void OnDeterminePageLanguage();
656 void OnSetContentSettingsForLoadingHost( 656 void OnSetContentSettingsForLoadingURL(
657 std::string host, const ContentSettings& content_settings); 657 const GURL& url, const ContentSettings& content_settings);
658 void OnZoom(PageZoom::Function function); 658 void OnZoom(PageZoom::Function function);
659 void OnSetZoomLevelForLoadingHost(std::string host, int zoom_level); 659 void OnSetZoomLevelForLoadingURL(const GURL& url, int zoom_level);
660 void OnSetPageEncoding(const std::string& encoding_name); 660 void OnSetPageEncoding(const std::string& encoding_name);
661 void OnResetPageEncodingToDefault(); 661 void OnResetPageEncodingToDefault();
662 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); 662 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url);
663 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( 663 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks(
664 const std::vector<GURL>& links, 664 const std::vector<GURL>& links,
665 const std::vector<FilePath>& local_paths, 665 const std::vector<FilePath>& local_paths,
666 const FilePath& local_directory_name); 666 const FilePath& local_directory_name);
667 void OnFillPasswordForm( 667 void OnFillPasswordForm(
668 const webkit_glue::PasswordFormDomManager::FillData& form_data); 668 const webkit_glue::PasswordFormDomManager::FillData& form_data);
669 void OnDragTargetDragEnter(const WebDropData& drop_data, 669 void OnDragTargetDragEnter(const WebDropData& drop_data,
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 1201
1202 // Site isolation metrics flags. These are per-page-load counts, reset to 0 1202 // Site isolation metrics flags. These are per-page-load counts, reset to 0
1203 // in OnClosePage. 1203 // in OnClosePage.
1204 int cross_origin_access_count_; 1204 int cross_origin_access_count_;
1205 int same_origin_access_count_; 1205 int same_origin_access_count_;
1206 1206
1207 DISALLOW_COPY_AND_ASSIGN(RenderView); 1207 DISALLOW_COPY_AND_ASSIGN(RenderView);
1208 }; 1208 };
1209 1209
1210 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1210 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« 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