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

Unified Diff: ios/web/web_state/web_state_impl.h

Issue 1137143004: WebUI for WKWebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: ios/web/web_state/web_state_impl.h
diff --git a/ios/web/web_state/web_state_impl.h b/ios/web/web_state/web_state_impl.h
index 23ecf4723fcf57c5f9472a886ad072640a813af4..9468e123bb0deb3938e62eabc4300b12e007d490 100644
--- a/ios/web/web_state/web_state_impl.h
+++ b/ios/web/web_state/web_state_impl.h
@@ -157,6 +157,9 @@ class WebStateImpl : public WebState, public NavigationManagerDelegate {
void ProcessWebUIMessage(const GURL& source_url,
const std::string& message,
const base::ListValue& args);
+ // Invokes page load for WebUI URL with HTML. URL must have an application
+ // specific scheme.
+ virtual void LoadWebUIHtml(const base::string16& html, const GURL& url);
const base::string16& GetTitle() const;
@@ -173,7 +176,7 @@ class WebStateImpl : public WebState, public NavigationManagerDelegate {
// Executes a JavaScript string on the page asynchronously.
// TODO(shreyasv): Rename this to ExecuteJavaScript for consitency with
// upstream API.
- void ExecuteJavaScriptAsync(const base::string16& javascript);
+ virtual void ExecuteJavaScriptAsync(const base::string16& javascript);
Eugene But (OOO till 7-30) 2015/05/12 17:47:09 Optional NIT: Since you touching this line please
Jackie Quinn 2015/05/12 18:14:54 Done.
// Request tracker management. For now, this exposes the RequestTracker for
// embedders to use.

Powered by Google App Engine
This is Rietveld 408576698