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

Unified Diff: extensions/browser/guest_view/web_view/web_view_guest.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/guest_view/web_view/web_view_guest.h
diff --git a/extensions/browser/guest_view/web_view/web_view_guest.h b/extensions/browser/guest_view/web_view/web_view_guest.h
index b4ee35c463d8faa39eacb7f8561152aa3a9ea1e3..ccf52edfc5b3f91ece191530996e49e338d5081d 100644
--- a/extensions/browser/guest_view/web_view/web_view_guest.h
+++ b/extensions/browser/guest_view/web_view/web_view_guest.h
@@ -77,6 +77,12 @@ class WebViewGuest : public GuestView<WebViewGuest>,
// Sets the transparency of the guest.
void SetAllowTransparency(bool allow);
+ // Loads a data URL with a specified base URL and virtual URL.
+ bool LoadDataWithBaseURL(const std::string& data_url,
+ const std::string& base_url,
+ const std::string& virtual_url,
+ std::string* error);
+
// GuestViewBase implementation.
virtual const char* GetAPINamespace() const OVERRIDE;
virtual int GetTaskPrefix() const OVERRIDE;
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_constants.cc ('k') | extensions/browser/guest_view/web_view/web_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698