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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 164279: View Background Image Feature (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "chrome/browser/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 const int renderer_id = process()->pid(); 1120 const int renderer_id = process()->pid();
1121 ChildProcessSecurityPolicy* policy = 1121 ChildProcessSecurityPolicy* policy =
1122 ChildProcessSecurityPolicy::GetInstance(); 1122 ChildProcessSecurityPolicy::GetInstance();
1123 1123
1124 // We don't validate |unfiltered_link_url| so that this field can be used 1124 // We don't validate |unfiltered_link_url| so that this field can be used
1125 // when users want to copy the original link URL. 1125 // when users want to copy the original link URL.
1126 FilterURL(policy, renderer_id, &validated_params.link_url); 1126 FilterURL(policy, renderer_id, &validated_params.link_url);
1127 FilterURL(policy, renderer_id, &validated_params.src_url); 1127 FilterURL(policy, renderer_id, &validated_params.src_url);
1128 FilterURL(policy, renderer_id, &validated_params.page_url); 1128 FilterURL(policy, renderer_id, &validated_params.page_url);
1129 FilterURL(policy, renderer_id, &validated_params.frame_url); 1129 FilterURL(policy, renderer_id, &validated_params.frame_url);
1130 FilterURL(policy, renderer_id, &validated_params.bkg_url);
1130 1131
1131 view->ShowContextMenu(validated_params); 1132 view->ShowContextMenu(validated_params);
1132 } 1133 }
1133 1134
1134 void RenderViewHost::OnMsgOpenURL(const GURL& url, 1135 void RenderViewHost::OnMsgOpenURL(const GURL& url,
1135 const GURL& referrer, 1136 const GURL& referrer,
1136 WindowOpenDisposition disposition) { 1137 WindowOpenDisposition disposition) {
1137 GURL validated_url(url); 1138 GURL validated_url(url);
1138 FilterURL(ChildProcessSecurityPolicy::GetInstance(), 1139 FilterURL(ChildProcessSecurityPolicy::GetInstance(),
1139 process()->pid(), &validated_url); 1140 process()->pid(), &validated_url);
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
1591 1592
1592 void RenderViewHost::SignalModalDialogEvent() { 1593 void RenderViewHost::SignalModalDialogEvent() {
1593 if (modal_dialog_count_++ == 0) 1594 if (modal_dialog_count_++ == 0)
1594 modal_dialog_event_->Signal(); 1595 modal_dialog_event_->Signal();
1595 } 1596 }
1596 1597
1597 void RenderViewHost::ResetModalDialogEvent() { 1598 void RenderViewHost::ResetModalDialogEvent() {
1598 if (--modal_dialog_count_ == 0) 1599 if (--modal_dialog_count_ == 0)
1599 modal_dialog_event_->Reset(); 1600 modal_dialog_event_->Reset();
1600 } 1601 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698