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

Unified Diff: extensions/browser/api/web_view/web_view_internal_api.h

Issue 610643003: Adds new webview.loadDataWithBaseUrl API to allow data URLs to be loaded with a specified base URL … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment. Created 6 years, 3 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: extensions/browser/api/web_view/web_view_internal_api.h
diff --git a/extensions/browser/api/web_view/web_view_internal_api.h b/extensions/browser/api/web_view/web_view_internal_api.h
index ecb54c1d4b88d7bdbedce209afdc456149f025fe..c83daae551d6d482b9f715a4aabc96b18c407a81 100644
--- a/extensions/browser/api/web_view/web_view_internal_api.h
+++ b/extensions/browser/api/web_view/web_view_internal_api.h
@@ -236,6 +236,23 @@ class WebViewInternalStopFindingFunction
DISALLOW_COPY_AND_ASSIGN(WebViewInternalStopFindingFunction);
};
+class WebViewInternalLoadDataWithBaseUrlFunction
+ : public WebViewInternalExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("webViewInternal.loadDataWithBaseUrl",
+ WEBVIEWINTERNAL_LOADDATAWITHBASEURL);
+
+ WebViewInternalLoadDataWithBaseUrlFunction();
+
+ protected:
+ virtual ~WebViewInternalLoadDataWithBaseUrlFunction();
+
+ private:
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(WebViewInternalLoadDataWithBaseUrlFunction);
+};
+
class WebViewInternalGoFunction : public WebViewInternalExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("webViewInternal.go", WEBVIEWINTERNAL_GO);

Powered by Google App Engine
This is Rietveld 408576698