diff options
author | jnd@google.com <jnd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-21 02:58:09 +0000 |
---|---|---|
committer | jnd@google.com <jnd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-21 02:58:09 +0000 |
commit | 1a3ebe10ead2ca99d2beb45b9ec65a2863406184 (patch) | |
tree | b1c8b11cc0a32e1f561362ecee1b488bf7d91b15 /chrome/browser/web_contents.h | |
parent | aef050626d6412bffa292cbfcee23107cadc4b5d (diff) | |
download | chromium_src-1a3ebe10ead2ca99d2beb45b9ec65a2863406184.zip chromium_src-1a3ebe10ead2ca99d2beb45b9ec65a2863406184.tar.gz chromium_src-1a3ebe10ead2ca99d2beb45b9ec65a2863406184.tar.bz2 |
As Brett pointed it out, We normally use 8-bit for encoding names since they're always ASCII. Plus, wstrings will also be 32-bit characters on Linux and Mac, which is expensive. So I make this CL by using std::string instead of std::wstring every time you have an encoding name.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_contents.h')
-rw-r--r-- | chrome/browser/web_contents.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/web_contents.h b/chrome/browser/web_contents.h index 865cfab..d6bc129 100644 --- a/chrome/browser/web_contents.h +++ b/chrome/browser/web_contents.h @@ -118,7 +118,7 @@ class WebContents : public TabContents, virtual void AlterTextSize(text_zoom::TextSize size); // Change encoding of page. - virtual void SetPageEncoding(const std::wstring& encoding_name); + virtual void SetPageEncoding(const std::string& encoding_name); bool is_starred() const { return is_starred_; } @@ -359,7 +359,7 @@ 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) { + void set_override_encoding(const std::string& override_encoding) { override_encoding_ = override_encoding; } @@ -394,7 +394,7 @@ class WebContents : public TabContents, int32 page_id, const std::wstring& title); virtual void UpdateEncoding(RenderViewHost* render_view_host, - const std::wstring& encoding_name); + const std::string& encoding_name); virtual void UpdateTargetURL(int32 page_id, const GURL& url); virtual void UpdateThumbnail(const GURL& url, const SkBitmap& bitmap, @@ -827,7 +827,7 @@ class WebContents : public TabContents, scoped_refptr<WebApp> web_app_; // Specified encoding which is used to override current tab's encoding. - std::wstring override_encoding_; + std::string override_encoding_; DISALLOW_COPY_AND_ASSIGN(WebContents); }; |