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

Side by Side Diff: Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm

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, 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 void WebFrameLoaderClient::postProgressFinishedNotification() 863 void WebFrameLoaderClient::postProgressFinishedNotification()
864 { 864 {
865 [[NSNotificationCenter defaultCenter] postNotificationName:WebViewProgressFi nishedNotification object:getWebView(m_webFrame.get())]; 865 [[NSNotificationCenter defaultCenter] postNotificationName:WebViewProgressFi nishedNotification object:getWebView(m_webFrame.get())];
866 } 866 }
867 867
868 void WebFrameLoaderClient::setMainFrameDocumentReady(bool ready) 868 void WebFrameLoaderClient::setMainFrameDocumentReady(bool ready)
869 { 869 {
870 [getWebView(m_webFrame.get()) setMainFrameDocumentReady:ready]; 870 [getWebView(m_webFrame.get()) setMainFrameDocumentReady:ready];
871 } 871 }
872 872
873 void WebFrameLoaderClient::startDownload(const ResourceRequest& request) 873 void WebFrameLoaderClient::startDownload(const ResourceRequest& request, const S tring& /* suggestedName */)
874 { 874 {
875 // FIXME: Should download full request. 875 // FIXME: Should download full request.
876 WebDownload *download = [getWebView(m_webFrame.get()) _downloadURL:request.u rl()]; 876 WebDownload *download = [getWebView(m_webFrame.get()) _downloadURL:request.u rl()];
877 877
878 setOriginalURLForDownload(download, request); 878 setOriginalURLForDownload(download, request);
879 } 879 }
880 880
881 void WebFrameLoaderClient::willChangeTitle(DocumentLoader* loader) 881 void WebFrameLoaderClient::willChangeTitle(DocumentLoader* loader)
882 { 882 {
883 // FIXME: Should do this only in main frame case, right? 883 // FIXME: Should do this only in main frame case, right?
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
2119 { 2119 {
2120 [self receivedPolicyDecision:PolicyUse]; 2120 [self receivedPolicyDecision:PolicyUse];
2121 } 2121 }
2122 2122
2123 - (void)continue 2123 - (void)continue
2124 { 2124 {
2125 [self receivedPolicyDecision:PolicyUse]; 2125 [self receivedPolicyDecision:PolicyUse];
2126 } 2126 }
2127 2127
2128 @end 2128 @end
OLDNEW
« no previous file with comments | « Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.h ('k') | Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698