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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 2802010: Revert 49594 - Convert page contents grabbing from wide to UTF16. The current... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/437/src/
Patch Set: Created 10 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 Source<RenderViewHost>(this), 1868 Source<RenderViewHost>(this),
1869 NotificationService::NoDetails()); 1869 NotificationService::NoDetails());
1870 } 1870 }
1871 1871
1872 void RenderViewHost::OnCSSInserted() { 1872 void RenderViewHost::OnCSSInserted() {
1873 delegate_->DidInsertCSS(); 1873 delegate_->DidInsertCSS();
1874 } 1874 }
1875 1875
1876 void RenderViewHost::OnPageContents(const GURL& url, 1876 void RenderViewHost::OnPageContents(const GURL& url,
1877 int32 page_id, 1877 int32 page_id,
1878 const string16& contents, 1878 const std::wstring& contents,
1879 const std::string& language) { 1879 const std::string& language) {
1880 RenderViewHostDelegate::BrowserIntegration* integration_delegate = 1880 RenderViewHostDelegate::BrowserIntegration* integration_delegate =
1881 delegate_->GetBrowserIntegrationDelegate(); 1881 delegate_->GetBrowserIntegrationDelegate();
1882 if (!integration_delegate) 1882 if (!integration_delegate)
1883 return; 1883 return;
1884 integration_delegate->OnPageContents(url, process()->id(), page_id, contents, 1884 integration_delegate->OnPageContents(url, process()->id(), page_id, contents,
1885 language); 1885 language);
1886 } 1886 }
1887 1887
1888 void RenderViewHost::OnPageTranslated(int32 page_id, 1888 void RenderViewHost::OnPageTranslated(int32 page_id,
1889 const std::string& original_lang, 1889 const std::string& original_lang,
1890 const std::string& translated_lang, 1890 const std::string& translated_lang,
1891 TranslateErrors::Type error_type) { 1891 TranslateErrors::Type error_type) {
1892 RenderViewHostDelegate::BrowserIntegration* integration_delegate = 1892 RenderViewHostDelegate::BrowserIntegration* integration_delegate =
1893 delegate_->GetBrowserIntegrationDelegate(); 1893 delegate_->GetBrowserIntegrationDelegate();
1894 if (!integration_delegate) 1894 if (!integration_delegate)
1895 return; 1895 return;
1896 integration_delegate->OnPageTranslated(page_id, original_lang, 1896 integration_delegate->OnPageTranslated(page_id, original_lang,
1897 translated_lang, error_type); 1897 translated_lang, error_type);
1898 } 1898 }
1899 1899
1900 void RenderViewHost::OnContentBlocked(ContentSettingsType type) { 1900 void RenderViewHost::OnContentBlocked(ContentSettingsType type) {
1901 RenderViewHostDelegate::Resource* resource_delegate = 1901 RenderViewHostDelegate::Resource* resource_delegate =
1902 delegate_->GetResourceDelegate(); 1902 delegate_->GetResourceDelegate();
1903 if (resource_delegate) 1903 if (resource_delegate)
1904 resource_delegate->OnContentBlocked(type); 1904 resource_delegate->OnContentBlocked(type);
1905 } 1905 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698