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, |