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

Unified Diff: content/browser/browsing_instance.h

Issue 2706933003: webapk: Avoid overwriting default CreationParams
Patch Set: rebase 461342 Created 3 years, 9 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: content/browser/browsing_instance.h
diff --git a/content/browser/browsing_instance.h b/content/browser/browsing_instance.h
index 34c1f073bbd852c260aecf8eade45656d6d10005..9e3dfe5126281e275a5ae9d7aa09a60abd34a0ae 100644
--- a/content/browser/browsing_instance.h
+++ b/content/browser/browsing_instance.h
@@ -65,13 +65,16 @@ class CONTENT_EXPORT BrowsingInstance final
OneSiteInstancePerSiteInBrowserContext);
// Create a new BrowsingInstance.
- explicit BrowsingInstance(BrowserContext* context);
+ BrowsingInstance(BrowserContext* context, int child_process_param_id);
~BrowsingInstance();
// Get the browser context to which this BrowsingInstance belongs.
BrowserContext* browser_context() const { return browser_context_; }
+ // An opaque id used passed to ChildProcessLauncher to launch child processes.
+ int child_process_param_id() const { return child_process_param_id_; }
+
// Returns whether this BrowsingInstance has registered a SiteInstance for
// the site of the given URL.
bool HasSiteInstance(const GURL& url);
@@ -113,6 +116,8 @@ class CONTENT_EXPORT BrowsingInstance final
// must belong.
BrowserContext* const browser_context_;
+ const int child_process_param_id_;
+
// Map of site to SiteInstance, to ensure we only have one SiteInstance per
// site. The site string should be the possibly_invalid_spec() of a GURL
// obtained with SiteInstanceImpl::GetSiteForURL. Note that this map may not

Powered by Google App Engine
This is Rietveld 408576698