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

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

Issue 639113004: [android_webview] Hardcode the default text encoding to UTF-8. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Sets a number of views/tabs opened in this process. 77 // Sets a number of views/tabs opened in this process.
78 virtual void SetNumberOfViews(int number_of_views) {} 78 virtual void SetNumberOfViews(int number_of_views) {}
79 79
80 // Returns the bitmap to show when a plugin crashed, or NULL for none. 80 // Returns the bitmap to show when a plugin crashed, or NULL for none.
81 virtual SkBitmap* GetSadPluginBitmap(); 81 virtual SkBitmap* GetSadPluginBitmap();
82 82
83 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for 83 // Returns the bitmap to show when a <webview> guest has crashed, or NULL for
84 // none. 84 // none.
85 virtual SkBitmap* GetSadWebViewBitmap(); 85 virtual SkBitmap* GetSadWebViewBitmap();
86 86
87 // Returns the default text encoding.
88 virtual std::string GetDefaultEncoding();
89
90 // Allows the embedder to override creating a plugin. If it returns true, then 87 // Allows the embedder to override creating a plugin. If it returns true, then
91 // |plugin| will contain the created plugin, although it could be NULL. If it 88 // |plugin| will contain the created plugin, although it could be NULL. If it
92 // returns false, the content layer will create the plugin. 89 // returns false, the content layer will create the plugin.
93 virtual bool OverrideCreatePlugin( 90 virtual bool OverrideCreatePlugin(
94 RenderFrame* render_frame, 91 RenderFrame* render_frame,
95 blink::WebLocalFrame* frame, 92 blink::WebLocalFrame* frame,
96 const blink::WebPluginParams& params, 93 const blink::WebPluginParams& params,
97 blink::WebPlugin** plugin); 94 blink::WebPlugin** plugin);
98 95
99 // Creates a replacement plug-in that is shown when the plug-in at |file_path| 96 // Creates a replacement plug-in that is shown when the plug-in at |file_path|
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 virtual bool IsPluginAllowedToUseDevChannelAPIs(); 272 virtual bool IsPluginAllowedToUseDevChannelAPIs();
276 273
277 // Returns a user agent override specific for |url|, or empty string if 274 // Returns a user agent override specific for |url|, or empty string if
278 // default user agent should be used. 275 // default user agent should be used.
279 virtual std::string GetUserAgentOverrideForURL(const GURL& url); 276 virtual std::string GetUserAgentOverrideForURL(const GURL& url);
280 }; 277 };
281 278
282 } // namespace content 279 } // namespace content
283 280
284 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 281 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698