Index: chrome/browser/tab_contents/web_contents.cc |
=================================================================== |
--- chrome/browser/tab_contents/web_contents.cc (revision 11648) |
+++ chrome/browser/tab_contents/web_contents.cc (working copy) |
@@ -42,6 +42,7 @@ |
#include "net/base/mime_util.h" |
#include "net/base/net_errors.h" |
#include "net/base/registry_controlled_domain.h" |
+#include "webkit/glue/feed.h" |
#include "webkit/glue/webkit_glue.h" |
#if defined(OS_WIN) |
@@ -807,6 +808,29 @@ |
NotifyNavigationStateChanged(INVALIDATE_TITLE); |
} |
+void WebContents::UpdateFeedList( |
+ RenderViewHost* rvh, const ViewHostMsg_UpdateFeedList_Params& params) { |
+ if (!controller()) |
+ return; |
+ |
+ // We might have an old RenderViewHost sending messages, and we should ignore |
+ // those messages. |
+ if (rvh != render_view_host()) |
+ return; |
+ |
+ NavigationEntry* entry = controller()->GetEntryWithPageID(type(), |
+ GetSiteInstance(), |
+ params.page_id); |
+ if (!entry) |
+ return; |
+ |
+ entry->set_feedlist(params.feedlist); |
+ |
+ // Broadcast notifications when the UI should be updated. |
+ if (entry == controller()->GetEntryAtOffset(0)) |
+ NotifyNavigationStateChanged(INVALIDATE_FEEDLIST); |
+} |
+ |
void WebContents::UpdateEncoding(RenderViewHost* render_view_host, |
const std::wstring& encoding) { |
set_encoding(encoding); |