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

Side by Side Diff: content/browser/site_instance_impl.h

Issue 1377933004: Modify --isolate-extensions to not isolate hosted apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_isolate_apps3
Patch Set: Fixes from charlie Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_
6 #define CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ 6 #define CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/render_process_host_observer.h" 10 #include "content/public/browser/render_process_host_observer.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 // Get the effective URL for the given actual URL. This allows the 79 // Get the effective URL for the given actual URL. This allows the
80 // ContentBrowserClient to override the SiteInstance's site for certain URLs. 80 // ContentBrowserClient to override the SiteInstance's site for certain URLs.
81 // For example, Chrome uses this to replace hosted app URLs with extension 81 // For example, Chrome uses this to replace hosted app URLs with extension
82 // hosts. 82 // hosts.
83 // Only public so that we can make a consistent process swap decision in 83 // Only public so that we can make a consistent process swap decision in
84 // RenderFrameHostManager. 84 // RenderFrameHostManager.
85 static GURL GetEffectiveURL(BrowserContext* browser_context, 85 static GURL GetEffectiveURL(BrowserContext* browser_context,
86 const GURL& url); 86 const GURL& url);
87 87
88 // Returns true if pages loaded from |effective_url| ought to be handled only
89 // by a renderer process isolated from other sites. If --site-per-process is
90 // on the command line, this is true for all sites. In other site isolation
91 // modes, only a subset of sites will require dedicated processes.
92 //
93 // |effective_url| must be an effective URL.
94 static bool DoesSiteRequireDedicatedProcess(BrowserContext* browser_context,
95 const GURL& effective_url);
96
88 protected: 97 protected:
89 friend class BrowsingInstance; 98 friend class BrowsingInstance;
90 friend class SiteInstance; 99 friend class SiteInstance;
91 100
92 // Virtual to allow tests to extend it. 101 // Virtual to allow tests to extend it.
93 ~SiteInstanceImpl() override; 102 ~SiteInstanceImpl() override;
94 103
95 // Create a new SiteInstance. Protected to give access to BrowsingInstance 104 // Create a new SiteInstance. Protected to give access to BrowsingInstance
96 // and tests; most callers should use Create or GetRelatedSiteInstance 105 // and tests; most callers should use Create or GetRelatedSiteInstance
97 // instead. 106 // instead.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 139
131 // Whether SetSite has been called. 140 // Whether SetSite has been called.
132 bool has_site_; 141 bool has_site_;
133 142
134 DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl); 143 DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl);
135 }; 144 };
136 145
137 } // namespace content 146 } // namespace content
138 147
139 #endif // CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ 148 #endif // CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.cc ('k') | content/browser/site_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698