Index: chrome/browser/guest_view/web_view/web_view_guest.h |
diff --git a/chrome/browser/guest_view/web_view/web_view_guest.h b/chrome/browser/guest_view/web_view/web_view_guest.h |
index 87e26fe3b5749c3cd17646ad6b23a19ef465ecab..89031a7a3af7ae83b3199baf2664d55560bf2163 100644 |
--- a/chrome/browser/guest_view/web_view/web_view_guest.h |
+++ b/chrome/browser/guest_view/web_view/web_view_guest.h |
@@ -48,6 +48,18 @@ class WebViewGuest : public GuestView<WebViewGuest>, |
content::WebContents* guest_web_contents, |
const std::string& embedder_extension_id); |
+ // For WebViewGuest, we create special guest processes, which host the |
+ // tag content separately from the main application that embeds the tag. |
+ // A <webview> can specify both the partition name and whether the storage |
+ // for that partition should be persisted. Each tag gets a SiteInstance with |
+ // a specially formatted URL, based on the application it is hosted by and |
+ // the partition requested by it. The format for that URL is: |
+ // chrome-guest://partition_domain/persist?partition_name |
+ static bool GetGuestPartitionConfigForSite(const GURL& site, |
+ std::string* partition_domain, |
+ std::string* partition_name, |
+ bool* in_memory); |
+ |
// Returns guestview::kInstanceIDNone if |contents| does not correspond to a |
// WebViewGuest. |
static int GetViewInstanceId(content::WebContents* contents); |