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

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

Issue 192017: Convert std::wstring encoding names to std::string in a bunch of files. (Closed)
Patch Set: mac and linux fixes 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <vector> 8 #include <vector>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 } 433 }
434 434
435 void RenderViewHost::GetPageLanguage() { 435 void RenderViewHost::GetPageLanguage() {
436 Send(new ViewMsg_DeterminePageText(routing_id())); 436 Send(new ViewMsg_DeterminePageText(routing_id()));
437 } 437 }
438 438
439 void RenderViewHost::Zoom(PageZoom::Function function) { 439 void RenderViewHost::Zoom(PageZoom::Function function) {
440 Send(new ViewMsg_Zoom(routing_id(), function)); 440 Send(new ViewMsg_Zoom(routing_id(), function));
441 } 441 }
442 442
443 void RenderViewHost::SetPageEncoding(const std::wstring& encoding_name) { 443 void RenderViewHost::SetPageEncoding(const std::string& encoding_name) {
444 Send(new ViewMsg_SetPageEncoding(routing_id(), encoding_name)); 444 Send(new ViewMsg_SetPageEncoding(routing_id(), encoding_name));
445 } 445 }
446 446
447 void RenderViewHost::SetAlternateErrorPageURL(const GURL& url) { 447 void RenderViewHost::SetAlternateErrorPageURL(const GURL& url) {
448 Send(new ViewMsg_SetAltErrorPageURL(routing_id(), url)); 448 Send(new ViewMsg_SetAltErrorPageURL(routing_id(), url));
449 } 449 }
450 450
451 void RenderViewHost::FillForm(const FormData& form_data) { 451 void RenderViewHost::FillForm(const FormData& form_data) {
452 Send(new ViewMsg_FormFill(routing_id(), form_data)); 452 Send(new ViewMsg_FormFill(routing_id(), form_data));
453 } 453 }
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 968
969 void RenderViewHost::OnMsgUpdateTitle(int32 page_id, 969 void RenderViewHost::OnMsgUpdateTitle(int32 page_id,
970 const std::wstring& title) { 970 const std::wstring& title) {
971 if (title.length() > chrome::kMaxTitleChars) { 971 if (title.length() > chrome::kMaxTitleChars) {
972 NOTREACHED() << "Renderer sent too many characters in title."; 972 NOTREACHED() << "Renderer sent too many characters in title.";
973 return; 973 return;
974 } 974 }
975 delegate_->UpdateTitle(this, page_id, title); 975 delegate_->UpdateTitle(this, page_id, title);
976 } 976 }
977 977
978 void RenderViewHost::OnMsgUpdateEncoding(const std::wstring& encoding_name) { 978 void RenderViewHost::OnMsgUpdateEncoding(const std::string& encoding_name) {
979 delegate_->UpdateEncoding(this, encoding_name); 979 delegate_->UpdateEncoding(this, encoding_name);
980 } 980 }
981 981
982 void RenderViewHost::OnMsgUpdateTargetURL(int32 page_id, 982 void RenderViewHost::OnMsgUpdateTargetURL(int32 page_id,
983 const GURL& url) { 983 const GURL& url) {
984 delegate_->UpdateTargetURL(page_id, url); 984 delegate_->UpdateTargetURL(page_id, url);
985 985
986 // Send a notification back to the renderer that we are ready to 986 // Send a notification back to the renderer that we are ready to
987 // receive more target urls. 987 // receive more target urls.
988 Send(new ViewMsg_UpdateTargetURL_ACK(routing_id())); 988 Send(new ViewMsg_UpdateTargetURL_ACK(routing_id()));
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 } 1657 }
1658 1658
1659 void RenderViewHost::ResetModalDialogEvent() { 1659 void RenderViewHost::ResetModalDialogEvent() {
1660 if (--modal_dialog_count_ == 0) 1660 if (--modal_dialog_count_ == 0)
1661 modal_dialog_event_->Reset(); 1661 modal_dialog_event_->Reset();
1662 } 1662 }
1663 1663
1664 void RenderViewHost::UpdateBrowserWindowId(int window_id) { 1664 void RenderViewHost::UpdateBrowserWindowId(int window_id) {
1665 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); 1665 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id));
1666 } 1666 }
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