summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.cc
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 17:03:07 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 17:03:07 +0000
commit38c0e99c382e4bf5ba04720f207338dba103f67f (patch)
tree6919b371afc1c5141388a90f8d09d6e199b9d0d3 /chrome/renderer/render_view.cc
parent1540cd50af4875ae49a4012015bac43ae17c2258 (diff)
downloadchromium_src-38c0e99c382e4bf5ba04720f207338dba103f67f.zip
chromium_src-38c0e99c382e4bf5ba04720f207338dba103f67f.tar.gz
chromium_src-38c0e99c382e4bf5ba04720f207338dba103f67f.tar.bz2
RSS feed support (part 1)
Part 1 is RSS feed auto-discovery. This will parse the web page header to find the feeds in the document and notify the browser to display the RSS icon in the toolbar. You can click on the icon, but it will just navigate to the first feed on the page, which (unless it has been designed to be browser friendly) will just dump XML as text on the user. For this reason I have disabled the code that makes the RSS icon appear and intend to enable it when we have a good landing page to display the XML. Review URL: http://codereview.chromium.org/43109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11640 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.cc')
-rw-r--r--chrome/renderer/render_view.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 8af74f5..8e7a45e 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -1219,6 +1219,9 @@ void RenderView::DidStopLoading(WebView* webview) {
if (!favicon_url.is_empty())
Send(new ViewHostMsg_UpdateFavIconURL(routing_id_, page_id_, favicon_url));
+ // Update the list of available feeds.
+ UpdateFeedList(webview->GetMainFrame()->GetFeedList());
+
AddGURLSearchProvider(webview->GetMainFrame()->GetOSDDURL(),
true); // autodetected
@@ -1696,6 +1699,13 @@ void RenderView::AddGURLSearchProvider(const GURL& osd_url, bool autodetected) {
autodetected));
}
+void RenderView::UpdateFeedList(scoped_refptr<FeedList> feedlist) {
+ ViewHostMsg_UpdateFeedList_Params params;
+ params.page_id = page_id_;
+ params.feedlist = feedlist;
+ Send(new ViewHostMsg_UpdateFeedList(routing_id_, params));
+}
+
bool RenderView::RunBeforeUnloadConfirm(WebFrame* webframe,
const std::wstring& message) {
bool success = false;