| 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);
|
| +
|
| + 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);
|
| };
|
|
|
|
|