| Index: chrome/browser/tab_contents/web_contents.cc
|
| ===================================================================
|
| --- chrome/browser/tab_contents/web_contents.cc (revision 11592)
|
| +++ 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,25 @@
|
| NotifyNavigationStateChanged(INVALIDATE_TITLE);
|
| }
|
|
|
| +void WebContents::UpdateFeedList(
|
| + RenderViewHost* rvh, const ViewHostMsg_UpdateFeedList_Params& params) {
|
| + if (!controller())
|
| + return;
|
| +
|
| + DCHECK(rvh == render_view_host());
|
| + 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);
|
|
|