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

Side by Side Diff: Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp

Issue 7521007: Merge 91797 - Add support for download='filename' attribute in anchors. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 5 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 | « Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h ('k') | Source/WebKit/win/WebFrame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2006 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2006, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) 4 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
5 * Copyright (C) 2008 Collabora Ltd. All rights reserved. 5 * Copyright (C) 2008 Collabora Ltd. All rights reserved.
6 * Coypright (C) 2008 Holger Hans Peter Freyther 6 * Coypright (C) 2008 Holger Hans Peter Freyther
7 * Coypright (C) 2009, 2010 Girish Ramakrishnan <girish@forwardbias.in> 7 * Coypright (C) 2009, 2010 Girish Ramakrishnan <girish@forwardbias.in>
8 * 8 *
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 return; 1289 return;
1290 } 1290 }
1291 callPolicyFunction(function, PolicyUse); 1291 callPolicyFunction(function, PolicyUse);
1292 } 1292 }
1293 1293
1294 void FrameLoaderClientQt::dispatchUnableToImplementPolicy(const WebCore::Resourc eError&) 1294 void FrameLoaderClientQt::dispatchUnableToImplementPolicy(const WebCore::Resourc eError&)
1295 { 1295 {
1296 notImplemented(); 1296 notImplemented();
1297 } 1297 }
1298 1298
1299 void FrameLoaderClientQt::startDownload(const WebCore::ResourceRequest& request) 1299 void FrameLoaderClientQt::startDownload(const WebCore::ResourceRequest& request, const String& /* suggestedName */)
1300 { 1300 {
1301 if (!m_webFrame) 1301 if (!m_webFrame)
1302 return; 1302 return;
1303 1303
1304 emit m_webFrame->page()->downloadRequested(request.toNetworkRequest(m_webFra me)); 1304 emit m_webFrame->page()->downloadRequested(request.toNetworkRequest(m_webFra me));
1305 } 1305 }
1306 1306
1307 PassRefPtr<Frame> FrameLoaderClientQt::createFrame(const KURL& url, const String & name, HTMLFrameOwnerElement* ownerElement, 1307 PassRefPtr<Frame> FrameLoaderClientQt::createFrame(const KURL& url, const String & name, HTMLFrameOwnerElement* ownerElement,
1308 const String& referrer, bool allowsScrol ling, int marginWidth, int marginHeight) 1308 const String& referrer, bool allowsScrol ling, int marginWidth, int marginHeight)
1309 { 1309 {
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 { 1684 {
1685 QVariant value = m_webFrame->page()->property("_q_MIMESniffingDisabled"); 1685 QVariant value = m_webFrame->page()->property("_q_MIMESniffingDisabled");
1686 bool MIMESniffingDisabled = value.isValid() && value.toBool(); 1686 bool MIMESniffingDisabled = value.isValid() && value.toBool();
1687 1687
1688 return FrameNetworkingContextQt::create(m_frame, m_webFrame, !MIMESniffingDi sabled, m_webFrame->page()->networkAccessManager()); 1688 return FrameNetworkingContextQt::create(m_frame, m_webFrame, !MIMESniffingDi sabled, m_webFrame->page()->networkAccessManager());
1689 } 1689 }
1690 1690
1691 } 1691 }
1692 1692
1693 #include "moc_FrameLoaderClientQt.cpp" 1693 #include "moc_FrameLoaderClientQt.cpp"
OLDNEW
« no previous file with comments | « Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h ('k') | Source/WebKit/win/WebFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698