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

Unified Diff: chrome/browser/tab_contents/tab_contents.h

Issue 173265: Bugfix for 2932 (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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/browser/renderer_host/render_view_host.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.h
===================================================================
--- chrome/browser/tab_contents/tab_contents.h (revision 25594)
+++ chrome/browser/tab_contents/tab_contents.h (working copy)
@@ -234,6 +234,9 @@
const std::string& encoding() const { return encoding_; }
void set_encoding(const std::string& encoding);
+ void reset_encoding() {
+ encoding_.clear();
+ }
// Internal state ------------------------------------------------------------
@@ -578,6 +581,12 @@
set_encoding(encoding);
render_view_host()->SetPageEncoding(encoding);
}
+ // Remove any user-defined override encoding and reload by sending down
+ // ViewMsg_ResetPageEncodingToDefault to the renderer.
+ void reset_override_encoding() {
+ reset_encoding();
+ render_view_host()->ResetPageEncodingToDefault();
+ }
void WindowMoveOrResizeStarted() {
render_view_host()->WindowMoveOrResizeStarted();
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698