Index: content/browser/tab_contents/tab_contents.cc |
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc |
index 5e76850a25a3b22a343ba3bb8cf6f44a60cf6eba..2d17d15dd92fd459db642eb55b9f027b4c3bd422 100644 |
--- a/content/browser/tab_contents/tab_contents.cc |
+++ b/content/browser/tab_contents/tab_contents.cc |
@@ -202,8 +202,8 @@ TabContents::TabContents(content::BrowserContext* browser_context, |
maximum_zoom_percent_( |
static_cast<int>(WebKit::WebView::maxTextSizeMultiplier * 100)), |
temporary_zoom_settings_(false), |
- content_restrictions_(0) { |
- |
+ content_restrictions_(0), |
+ view_type_(content::VIEW_TYPE_TAB_CONTENTS) { |
render_manager_.Init(browser_context, site_instance, routing_id); |
// We have the initial size of the view be based on the size of the passed in |
@@ -1408,7 +1408,7 @@ TabContents* TabContents::GetAsTabContents() { |
} |
content::ViewType TabContents::GetRenderViewType() const { |
- return content::VIEW_TYPE_TAB_CONTENTS; |
+ return view_type_; |
} |
void TabContents::RenderViewCreated(RenderViewHost* render_view_host) { |
@@ -1679,6 +1679,12 @@ void TabContents::DidChangeLoadProgress(double progress) { |
delegate()->LoadProgressChanged(progress); |
} |
+void TabContents::DocumentAvailableInMainFrame( |
+ RenderViewHost* render_view_host) { |
+ FOR_EACH_OBSERVER(TabContentsObserver, observers_, |
+ DocumentAvailableInMainFrame()); |
+} |
+ |
void TabContents::DocumentOnLoadCompletedInMainFrame( |
RenderViewHost* render_view_host, |
int32 page_id) { |