summaryrefslogtreecommitdiffstats
path: root/chrome/browser/web_contents.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/web_contents.h')
-rw-r--r--chrome/browser/web_contents.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/web_contents.h b/chrome/browser/web_contents.h
index 09a07d0..865cfab 100644
--- a/chrome/browser/web_contents.h
+++ b/chrome/browser/web_contents.h
@@ -359,6 +359,10 @@ class WebContents : public TabContents,
// Returns true if this WebContents will notify about disconnection.
bool notify_disconnection() const { return notify_disconnection_; }
+ void set_override_encoding(const std::wstring& override_encoding) {
+ override_encoding_ = override_encoding;
+ }
+
protected:
FRIEND_TEST(WebContentsTest, OnMessageReceived);
@@ -822,6 +826,9 @@ class WebContents : public TabContents,
// Non-null if we're displaying content for a web app.
scoped_refptr<WebApp> web_app_;
+ // Specified encoding which is used to override current tab's encoding.
+ std::wstring override_encoding_;
+
DISALLOW_COPY_AND_ASSIGN(WebContents);
};