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

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

Issue 1312653003: Fix for WebView accessible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small fix. Rebased. 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 | « extensions/common/extension_messages.h ('k') | extensions/common/manifest_handlers/webview_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 968e5fde960906029e7362e5ff2ed6a2bfa69a0d..ca186a8d788573bd5a0d483939a303dc505874cb 100644
--- a/extensions/common/manifest_handlers/webview_info.h
+++ b/extensions/common/manifest_handlers/webview_info.h
@@ -20,16 +20,16 @@ class PartitionItem;
// "webview" key.
class WebviewInfo : public Extension::ManifestData {
public:
+ // Returns true if |extension|'s resource at |relative_path| is accessible
+ // from the WebView partition with ID |partition_id|.
+ static bool IsResourceWebviewAccessible(const Extension* extension,
+ const std::string& partition_id,
+ const std::string& relative_path);
+
// Define out of line constructor/destructor to please Clang.
WebviewInfo(const std::string& extension_id);
~WebviewInfo() override;
- // Returns true if the specified resource is web accessible and the extension
- // matches the manifest's extension.
- bool IsResourceWebviewAccessible(const Extension* extension,
- const std::string& partition_id,
- const std::string& relative_path) const;
-
void AddPartitionItem(scoped_ptr<PartitionItem> item);
private:
« no previous file with comments | « extensions/common/extension_messages.h ('k') | extensions/common/manifest_handlers/webview_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698