Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4079)

Unified Diff: chrome/renderer/chrome_render_view_observer.h

Issue 9235004: [Garbled Text][Infobar] Adding infobar to suggest turning on encoding detection. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_render_view_observer.h
diff --git a/chrome/renderer/chrome_render_view_observer.h b/chrome/renderer/chrome_render_view_observer.h
index fe97f5d1ab2f1f53338802cb0dbb9eff1893ba7b..8a4d04bd9f8556f6e00e17c4cbae15ea53887635 100644
--- a/chrome/renderer/chrome_render_view_observer.h
+++ b/chrome/renderer/chrome_render_view_observer.h
@@ -138,6 +138,8 @@ class ChromeRenderViewObserver : public content::RenderViewObserver,
void OnGetFPS();
void OnAddStrictSecurityHost(const std::string& host);
void OnSetAsInterstitial();
+ void OnReloadFromCache();
+ void OnSetGarbledTextDetectionEnableState(bool enable);
// Captures the thumbnail and text contents for indexing for the given load
// ID. If the view's load ID is different than the parameter, this call is
@@ -220,6 +222,9 @@ class ChromeRenderViewObserver : public content::RenderViewObserver,
// External host exposed through automation controller.
scoped_ptr<ExternalHostBindings> external_host_bindings_;
+ // True if we should run garbled text detection.
+ bool garbled_text_detection_enabled_;
+
base::WeakPtrFactory<ChromeRenderViewObserver> weak_factory_;
typedef std::vector<linked_ptr<webkit_glue::ImageResourceFetcher> >
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698