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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu.cc

Issue 8784006: Replace the GURL referrer field of OpenURLParams with a content::Referrer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <algorithm> 5 #include <algorithm>
6 #include <set> 6 #include <set>
7 #include <utility> 7 #include <utility>
8 8
9 #include "chrome/browser/tab_contents/render_view_context_menu.h" 9 #include "chrome/browser/tab_contents/render_view_context_menu.h"
10 10
(...skipping 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 kMaxSelectionTextLength); 1797 kMaxSelectionTextLength);
1798 } 1798 }
1799 1799
1800 // Controller functions -------------------------------------------------------- 1800 // Controller functions --------------------------------------------------------
1801 1801
1802 void RenderViewContextMenu::OpenURL( 1802 void RenderViewContextMenu::OpenURL(
1803 const GURL& url, const GURL& referrer, int64 frame_id, 1803 const GURL& url, const GURL& referrer, int64 frame_id,
1804 WindowOpenDisposition disposition, 1804 WindowOpenDisposition disposition,
1805 content::PageTransition transition) { 1805 content::PageTransition transition) {
1806 TabContents* new_contents = source_tab_contents_->OpenURL(OpenURLParams( 1806 TabContents* new_contents = source_tab_contents_->OpenURL(OpenURLParams(
1807 url, referrer, disposition, transition, false)); 1807 url, content::Referrer(referrer, params_.referrer_policy), disposition,
1808 transition, false));
1808 1809
1809 if (new_contents) { 1810 if (new_contents) {
1810 content::RetargetingDetails details; 1811 content::RetargetingDetails details;
1811 details.source_tab_contents = source_tab_contents_; 1812 details.source_tab_contents = source_tab_contents_;
1812 details.source_frame_id = frame_id; 1813 details.source_frame_id = frame_id;
1813 details.target_url = url; 1814 details.target_url = url;
1814 details.target_tab_contents = new_contents; 1815 details.target_tab_contents = new_contents;
1815 content::NotificationService::current()->Notify( 1816 content::NotificationService::current()->Notify(
1816 content::NOTIFICATION_RETARGETING, 1817 content::NOTIFICATION_RETARGETING,
1817 content::Source<content::BrowserContext>( 1818 content::Source<content::BrowserContext>(
(...skipping 18 matching lines...) Expand all
1836 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages), 1837 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages),
1837 g_browser_process->clipboard()); 1838 g_browser_process->clipboard());
1838 } 1839 }
1839 1840
1840 void RenderViewContextMenu::MediaPlayerActionAt( 1841 void RenderViewContextMenu::MediaPlayerActionAt(
1841 const gfx::Point& location, 1842 const gfx::Point& location,
1842 const WebMediaPlayerAction& action) { 1843 const WebMediaPlayerAction& action) {
1843 source_tab_contents_->render_view_host()-> 1844 source_tab_contents_->render_view_host()->
1844 ExecuteMediaPlayerActionAtLocation(location, action); 1845 ExecuteMediaPlayerActionAtLocation(location, action);
1845 } 1846 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/insecure_content_infobar_delegate.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698