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

Unified Diff: components/html_viewer/html_widget.h

Issue 1362983004: Mandoline: fix the crash when a remote subframe tries to access session storage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | components/html_viewer/html_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_widget.h
diff --git a/components/html_viewer/html_widget.h b/components/html_viewer/html_widget.h
index 37074ce1c7ab25a65d848ade5dbf12bd6da260e1..21f7daadccf6e0ad2a6a5617872d93449cb6f8fc 100644
--- a/components/html_viewer/html_widget.h
+++ b/components/html_viewer/html_widget.h
@@ -38,12 +38,16 @@ class HTMLWidget {
};
// Used for the root frame when the root frame is remote.
-class HTMLWidgetRootRemote : public HTMLWidget {
+class HTMLWidgetRootRemote : public HTMLWidget, public blink::WebViewClient {
public:
HTMLWidgetRootRemote();
~HTMLWidgetRootRemote() override;
private:
+ // WebViewClient methods:
+ virtual blink::WebStorageNamespace* createSessionStorageNamespace();
+ virtual bool allowsBrokenNullLayerTreeView() const;
+
// HTMLWidget:
blink::WebWidget* GetWidget() override;
void OnViewBoundsChanged(mus::View* view) override;
« no previous file with comments | « no previous file | components/html_viewer/html_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698