Index: chrome/browser/tab_contents/tab_contents.cc |
=================================================================== |
--- chrome/browser/tab_contents/tab_contents.cc (revision 71882) |
+++ chrome/browser/tab_contents/tab_contents.cc (working copy) |
@@ -49,6 +49,7 @@ |
#include "chrome/browser/metrics/user_metrics.h" |
#include "chrome/browser/modal_html_dialog_delegate.h" |
#include "chrome/browser/omnibox_search_hint.h" |
+#include "chrome/browser/pdf_unsupported_feature.h" |
#include "chrome/browser/platform_util.h" |
#include "chrome/browser/plugin_installer.h" |
#include "chrome/browser/prefs/pref_service.h" |
@@ -593,6 +594,10 @@ |
IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentLoadedInFrame, |
OnDocumentLoadedInFrame) |
IPC_MESSAGE_HANDLER(ViewHostMsg_DidFinishLoad, OnDidFinishLoad) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateContentRestrictions, |
+ OnUpdateContentRestrictions) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_PDFHasUnsupportedFeature, |
+ OnPDFHasUnsupportedFeature) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP_EX() |
@@ -1773,6 +1778,15 @@ |
Details<int64>(&frame_id)); |
} |
+void TabContents::OnUpdateContentRestrictions(int restrictions) { |
+ content_restrictions_ = restrictions; |
+ delegate()->ContentRestrictionsChanged(this); |
+} |
+ |
+void TabContents::OnPDFHasUnsupportedFeature() { |
+ PDFHasUnsupportedFeature(this); |
+} |
+ |
// Notifies the RenderWidgetHost instance about the fact that the page is |
// loading, or done loading and calls the base implementation. |
void TabContents::SetIsLoading(bool is_loading, |
@@ -3144,11 +3158,6 @@ |
temporary_zoom_settings_ = !remember; |
} |
-void TabContents::UpdateContentRestrictions(int restrictions) { |
- content_restrictions_ = restrictions; |
- delegate()->ContentRestrictionsChanged(this); |
-} |
- |
void TabContents::BeforeUnloadFiredFromRenderManager( |
bool proceed, |
bool* proceed_to_fire_unload) { |