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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2254273003: Remove text encoding UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 2893 matching lines...) Expand 10 before | Expand all | Expand 10 after
2904 } 2904 }
2905 2905
2906 const std::string& WebContentsImpl::GetContentsMimeType() const { 2906 const std::string& WebContentsImpl::GetContentsMimeType() const {
2907 return contents_mime_type_; 2907 return contents_mime_type_;
2908 } 2908 }
2909 2909
2910 bool WebContentsImpl::WillNotifyDisconnection() const { 2910 bool WebContentsImpl::WillNotifyDisconnection() const {
2911 return notify_disconnection_; 2911 return notify_disconnection_;
2912 } 2912 }
2913 2913
2914 void WebContentsImpl::SetOverrideEncoding(const std::string& encoding) {
2915 SetEncoding(encoding);
2916 Send(new ViewMsg_SetPageEncoding(GetRoutingID(), encoding));
2917 }
2918
2919 void WebContentsImpl::ResetOverrideEncoding() {
2920 canonical_encoding_.clear();
2921 Send(new ViewMsg_ResetPageEncodingToDefault(GetRoutingID()));
no sievers 2016/08/29 23:54:53 What about removal of the msgs and the renderer-si
Jinsuk Kim 2016/08/30 01:08:22 Done.
2922 }
2923
2924 RendererPreferences* WebContentsImpl::GetMutableRendererPrefs() { 2914 RendererPreferences* WebContentsImpl::GetMutableRendererPrefs() {
2925 return &renderer_preferences_; 2915 return &renderer_preferences_;
2926 } 2916 }
2927 2917
2928 void WebContentsImpl::Close() { 2918 void WebContentsImpl::Close() {
2929 Close(GetRenderViewHost()); 2919 Close(GetRenderViewHost());
2930 } 2920 }
2931 2921
2932 void WebContentsImpl::DragSourceEndedAt(int client_x, int client_y, 2922 void WebContentsImpl::DragSourceEndedAt(int client_x, int client_y,
2933 int screen_x, int screen_y, blink::WebDragOperation operation) { 2923 int screen_x, int screen_y, blink::WebDragOperation operation) {
(...skipping 2272 matching lines...) Expand 10 before | Expand all | Expand 10 after
5206 for (RenderViewHost* render_view_host : render_view_host_set) 5196 for (RenderViewHost* render_view_host : render_view_host_set)
5207 render_view_host->OnWebkitPreferencesChanged(); 5197 render_view_host->OnWebkitPreferencesChanged();
5208 } 5198 }
5209 5199
5210 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( 5200 void WebContentsImpl::SetJavaScriptDialogManagerForTesting(
5211 JavaScriptDialogManager* dialog_manager) { 5201 JavaScriptDialogManager* dialog_manager) {
5212 dialog_manager_ = dialog_manager; 5202 dialog_manager_ = dialog_manager;
5213 } 5203 }
5214 5204
5215 } // namespace content 5205 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698