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

Unified Diff: ios/web/public/web_client.h

Issue 2764773002: Add CWVUserContentController which enables injecting JavaScripts. (Closed)
Patch Set: Rebase. Created 3 years, 9 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
« no previous file with comments | « no previous file | ios/web_view/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_client.h
diff --git a/ios/web/public/web_client.h b/ios/web/public/web_client.h
index 5c59fd224dc524d7cefc203be4a0c4a20b50517c..feeac03cdfa5601d37d188fcf628829ace2f5778 100644
--- a/ios/web/public/web_client.h
+++ b/ios/web/public/web_client.h
@@ -108,6 +108,9 @@ class WebClient {
// Gives the embedder a chance to provide the JavaScript to be injected into
// the web view as early as possible. Result must not be nil.
+ //
+ // TODO(crbug.com/703964): Change the return value to NSArray<NSString*> to
+ // improve performance.
virtual NSString* GetEarlyPageScript(BrowserState* browser_state) const;
// Informs the embedder that a certificate error has occurred. If
« no previous file with comments | « no previous file | ios/web_view/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698