Chromium Code Reviews| Index: chrome/browser/extensions/extension_renderer_state.h |
| diff --git a/chrome/browser/extensions/extension_renderer_state.h b/chrome/browser/extensions/extension_renderer_state.h |
| index 59349afb9024277ab29f5c3153e27944abbb9fca..8b1c5935a9c6d129bcc2bb66a57d18fdca811b82 100644 |
| --- a/chrome/browser/extensions/extension_renderer_state.h |
| +++ b/chrome/browser/extensions/extension_renderer_state.h |
| @@ -42,6 +42,10 @@ class ExtensionRendererState { |
| bool GetWebViewInfo(int guest_process_id, int guest_routing_id, |
| WebViewInfo* webview_info); |
| + // Looks up the partition info for the embedder <webview> for a given guest |
| + // process. |
|
Fady Samuel
2014/06/16 21:01:56
Please mention that this should only be called on
Xi Han
2014/06/16 21:53:55
Done.
|
| + bool GetWebViewPartitionID(int guest_process_id, std::string* partition_id); |
| + |
| // Looks up the tab and window ID for a given request. Returns true if we have |
| // the IDs in our map. Called on the IO thread. |
| bool GetTabAndWindowId( |
| @@ -61,6 +65,7 @@ class ExtensionRendererState { |
| typedef std::pair<int, int> TabAndWindowId; |
| typedef std::map<RenderId, TabAndWindowId> TabAndWindowIdMap; |
| typedef std::map<RenderId, WebViewInfo> WebViewInfoMap; |
| + typedef std::map<int, std::string> WebViewPartitionIDMap; |
| ExtensionRendererState(); |
| ~ExtensionRendererState(); |
| @@ -75,10 +80,14 @@ class ExtensionRendererState { |
| void AddWebView(int render_process_host_id, int routing_id, |
| const WebViewInfo& webview_info); |
| void RemoveWebView(int render_process_host_id, int routing_id); |
| + void AddWebViewPartitionID(int render_process_host_id, |
| + const std::string& partition_id); |
| + void RemoveWebViewPartitionID(int render_process_host_id); |
| TabObserver* observer_; |
| TabAndWindowIdMap map_; |
| WebViewInfoMap webview_info_map_; |
| + WebViewPartitionIDMap webview_partition_id_map; |
|
Fady Samuel
2014/06/16 21:01:56
webview_partition_id_map_
Xi Han
2014/06/16 21:53:55
Done.
|
| DISALLOW_COPY_AND_ASSIGN(ExtensionRendererState); |
| }; |