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

Unified Diff: extensions/common/manifest_handlers/webview_info.h

Issue 2958343002: [Extensions] Change renderer-side web accessible resource determination (Closed)
Patch Set: s/web_accessible_ids/web_accessible_ids_ Created 3 years, 5 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/common/manifest_handlers/webview_info.h
diff --git a/extensions/common/manifest_handlers/webview_info.h b/extensions/common/manifest_handlers/webview_info.h
index 5deb8970ac492c81a8bb768b9f515cc3f54f2857..58feb6e8f6549c8c4ab968d62b496d4846309a39 100644
--- a/extensions/common/manifest_handlers/webview_info.h
+++ b/extensions/common/manifest_handlers/webview_info.h
@@ -27,6 +27,10 @@ class WebviewInfo : public Extension::ManifestData {
static bool IsResourceWebviewAccessible(const Extension* extension,
const std::string& partition_id,
const std::string& relative_path);
+ // Returns true if the given |extension| has any webview accessible
+ // resources in the given |partition_id|.
+ static bool HasWebviewAccessibleResources(const Extension& extension,
+ const std::string& partition_id);
// Define out of line constructor/destructor to please Clang.
explicit WebviewInfo(const std::string& extension_id);
« no previous file with comments | « chrome/renderer/extensions/resource_request_policy.cc ('k') | extensions/common/manifest_handlers/webview_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698