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

Unified Diff: mojo/services/html_viewer/html_document.h

Issue 821023005: Update createChildFrame in mojo's html_viewer to take sandbox flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include WebSandboxFlags.h Created 5 years, 11 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 | mojo/services/html_viewer/html_document.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/html_viewer/html_document.h
diff --git a/mojo/services/html_viewer/html_document.h b/mojo/services/html_viewer/html_document.h
index d53615796315051f70af7dfa446c94d954e3f140..1923f61441d43576f99b4d3f0451972392fcfa6c 100644
--- a/mojo/services/html_viewer/html_document.h
+++ b/mojo/services/html_viewer/html_document.h
@@ -22,6 +22,7 @@
#include "mojo/services/view_manager/public/cpp/view_manager_delegate.h"
#include "mojo/services/view_manager/public/cpp/view_observer.h"
#include "third_party/WebKit/public/web/WebFrameClient.h"
+#include "third_party/WebKit/public/web/WebSandboxFlags.h"
#include "third_party/WebKit/public/web/WebViewClient.h"
namespace base {
@@ -83,8 +84,13 @@ class HTMLDocument : public blink::WebViewClient,
const blink::WebURL& url,
blink::WebMediaPlayerClient* client,
blink::WebContentDecryptionModule* initial_cdm);
+ // TODO(alexmos): Remove once Blink is updated to pass sandboxFlags.
virtual blink::WebFrame* createChildFrame(blink::WebLocalFrame* parent,
const blink::WebString& frameName);
+ virtual blink::WebFrame* createChildFrame(
+ blink::WebLocalFrame* parent,
+ const blink::WebString& frameName,
+ blink::WebSandboxFlags sandboxFlags);
virtual void frameDetached(blink::WebFrame*);
virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame);
virtual blink::WebNavigationPolicy decidePolicyForNavigation(
« no previous file with comments | « no previous file | mojo/services/html_viewer/html_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698