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

Unified Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2917343004: Move LoadHTMLString method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/web/WebLocalFrame.h
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h
index 0e7ac509b37c9af1e6e7ed4a096fc5fb367d95a6..e768600fd6366332fb1e07ce54872a1e17e1e57a 100644
--- a/third_party/WebKit/public/web/WebLocalFrame.h
+++ b/third_party/WebKit/public/web/WebLocalFrame.h
@@ -25,6 +25,7 @@ class InterfaceProvider;
class InterfaceRegistry;
class WebAutofillClient;
class WebContentSettingsClient;
+class WebData;
class WebDevToolsAgent;
class WebDevToolsAgentClient;
class WebDoubleSize;
@@ -153,6 +154,13 @@ class WebLocalFrame : public WebFrame {
WebHistoryLoadType = kWebHistoryDifferentDocumentLoad,
bool is_client_redirect = false) = 0;
+ // This method is short-hand for calling LoadData, where mime_type is
+ // "text/html" and text_encoding is "UTF-8".
+ virtual void LoadHTMLString(const WebData& html,
+ const WebURL& base_url,
+ const WebURL& unreachable_url = WebURL(),
+ bool replace = false) = 0;
+
// Loads the given data with specific mime type and optional text
// encoding. For HTML data, baseURL indicates the security origin of
// the document and is used to resolve links. If specified,

Powered by Google App Engine
This is Rietveld 408576698