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

Side by Side Diff: content/public/renderer/render_view.h

Issue 24503004: Show IDN in error screens (DNS failure etc.) (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 2 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 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
7 7
8 #include <string>
9
8 #include "base/basictypes.h" 10 #include "base/basictypes.h"
9 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
10 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
11 #include "content/public/common/top_controls_state.h" 13 #include "content/public/common/top_controls_state.h"
12 #include "ipc/ipc_sender.h" 14 #include "ipc/ipc_sender.h"
13 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 15 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
14 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" 16 #include "third_party/WebKit/public/web/WebPageVisibilityState.h"
15 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
16 18
17 struct WebPreferences; 19 struct WebPreferences;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 virtual void Repaint(const gfx::Size& size) = 0; 158 virtual void Repaint(const gfx::Size& size) = 0;
157 159
158 // Inject edit commands to be used for the next keyboard event. 160 // Inject edit commands to be used for the next keyboard event.
159 virtual void SetEditCommandForNextKeyEvent(const std::string& name, 161 virtual void SetEditCommandForNextKeyEvent(const std::string& name,
160 const std::string& value) = 0; 162 const std::string& value) = 0;
161 virtual void ClearEditCommands() = 0; 163 virtual void ClearEditCommands() = 0;
162 164
163 // Returns a collection of security info about |frame|. 165 // Returns a collection of security info about |frame|.
164 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0; 166 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const = 0;
165 167
168 // Returns |renderer_preferences_.accept_languages| value.
169 virtual const std::string& GetAcceptLanguages() const = 0;
170
166 #if defined(OS_ANDROID) 171 #if defined(OS_ANDROID)
167 virtual void UpdateTopControlsState(TopControlsState constraints, 172 virtual void UpdateTopControlsState(TopControlsState constraints,
168 TopControlsState current, 173 TopControlsState current,
169 bool animate) = 0; 174 bool animate) = 0;
170 #endif 175 #endif
171 176
172 protected: 177 protected:
173 virtual ~RenderView() {} 178 virtual ~RenderView() {}
174 179
175 private: 180 private:
176 // This interface should only be implemented inside content. 181 // This interface should only be implemented inside content.
177 friend class RenderViewImpl; 182 friend class RenderViewImpl;
178 RenderView() {} 183 RenderView() {}
179 }; 184 };
180 185
181 } // namespace content 186 } // namespace content
182 187
183 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 188 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698