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

Unified Diff: extensions/renderer/renderer_extension_registry.h

Issue 1312653003: Fix for WebView accessible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments by lfg@. Created 5 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
Index: extensions/renderer/renderer_extension_registry.h
diff --git a/extensions/renderer/renderer_extension_registry.h b/extensions/renderer/renderer_extension_registry.h
index 6a887a16d4f92e3be4c6ad98ed90ce6ea63ce206..4871ea4e1294dc8aaedffcc31ff79501d11cc4cd 100644
--- a/extensions/renderer/renderer_extension_registry.h
+++ b/extensions/renderer/renderer_extension_registry.h
@@ -32,6 +32,14 @@ class RendererExtensionRegistry {
// TODO(annekao): remove or make thread-safe and callback-based.
const ExtensionSet* GetMainThreadExtensionSet() const;
+ // This method is used to let RendererExtensionRegistry know which webview
+ // partition ID this render process is associated with, if any. This ID is
+ // used to find the correct entry in extension manifests for webview
+ // accessible resources.
+ void SetWebviewPartitionID(const std::string& partition_id);
not at google - send to devlin 2015/08/27 20:01:25 This class is a set of extensions. Knowledge about
paulmeyer 2015/08/31 15:32:55 Okay, I will instead store the partition ID right
+
+ std::string webview_partition_id() const { return webview_partition_id_; }
+
size_t size() const;
bool is_empty() const;
@@ -51,6 +59,8 @@ class RendererExtensionRegistry {
mutable base::Lock lock_;
+ std::string webview_partition_id_;
+
DISALLOW_COPY_AND_ASSIGN(RendererExtensionRegistry);
};

Powered by Google App Engine
This is Rietveld 408576698