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

Unified Diff: chrome/renderer/extensions/dispatcher.h

Issue 22709003: Enable webview and browser-plugin as custom elements in Chrome Apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 7 years, 4 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 | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/dispatcher.h
diff --git a/chrome/renderer/extensions/dispatcher.h b/chrome/renderer/extensions/dispatcher.h
index b43067d0d16b0a83f4205010dc13729f8a22728d..b145eab782d53b5d34d66c29c6fd22df30320785 100644
--- a/chrome/renderer/extensions/dispatcher.h
+++ b/chrome/renderer/extensions/dispatcher.h
@@ -200,6 +200,9 @@ class Dispatcher : public content::RenderProcessObserver {
const Extension* extension,
const URLPatternSet& origins);
+ // Enable custom element whitelist in Apps.
+ void EnableCustomElementWhiteList();
+
// Adds or removes bindings for every context belonging to |extension_id|, or
// or all contexts if |extension_id| is empty.
void AddOrRemoveBindings(const std::string& extension_id);
@@ -226,10 +229,8 @@ class Dispatcher : public content::RenderProcessObserver {
v8::Handle<v8::Context> v8_context,
const std::string& api);
- // Determines whether |frame| is loading a platform app resource URL. (this
- // evaluates to true for iframes in platform apps and sandboxed resources that
- // are not in the same origin).
- bool IsWithinPlatformApp(const WebKit::WebFrame* frame);
+ // Returns whether the current renderer hosts a platform app.
+ bool IsWithinPlatformApp();
bool IsSandboxedPage(const GURL& url) const;
« no previous file with comments | « no previous file | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698