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

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

Issue 1874543002: Inside of content, prefer SiteInstanceImpl to SiteInstance. Base URL: https://chromium.googlesource.com/chromium/src.git@site_instance_unittest
Patch Set: Created 4 years, 8 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 int32_t GetId() override; 43 int32_t GetId() override;
44 bool HasProcess() const override; 44 bool HasProcess() const override;
45 RenderProcessHost* GetProcess() override; 45 RenderProcessHost* GetProcess() override;
46 BrowserContext* GetBrowserContext() const override; 46 BrowserContext* GetBrowserContext() const override;
47 const GURL& GetSiteURL() const override; 47 const GURL& GetSiteURL() const override;
48 scoped_refptr<SiteInstance> GetRelatedSiteInstance(const GURL& url) override; 48 scoped_refptr<SiteInstance> GetRelatedSiteInstance(const GURL& url) override;
49 bool IsRelatedSiteInstance(const SiteInstance* instance) override; 49 bool IsRelatedSiteInstance(const SiteInstance* instance) override;
50 size_t GetRelatedActiveContentsCount() override; 50 size_t GetRelatedActiveContentsCount() override;
51 bool RequiresDedicatedProcess() override; 51 bool RequiresDedicatedProcess() override;
52 52
53 // Same as GetRelatedSiteInstance, but returns a SiteInstanceImpl.
54 scoped_refptr<SiteInstanceImpl> GetRelatedSiteInstanceImpl(const GURL& url);
55
53 // Returns the SiteInstance, related to this one, that should be used 56 // Returns the SiteInstance, related to this one, that should be used
54 // for subframes when an oopif is required, but a dedicated process is not. 57 // for subframes when an oopif is required, but a dedicated process is not.
55 // This SiteInstance will be created if it doesn't already exist. There is 58 // This SiteInstance will be created if it doesn't already exist. There is
56 // at most one of these per BrowsingInstance. 59 // at most one of these per BrowsingInstance.
57 scoped_refptr<SiteInstanceImpl> GetDefaultSubframeSiteInstance(); 60 scoped_refptr<SiteInstanceImpl> GetDefaultSubframeSiteInstance();
58 61
59 // Set the web site that this SiteInstance is rendering pages for. 62 // Set the web site that this SiteInstance is rendering pages for.
60 // This includes the scheme and registered domain, but not the port. If the 63 // This includes the scheme and registered domain, but not the port. If the
61 // URL does not have a valid registered domain, then the full hostname is 64 // URL does not have a valid registered domain, then the full hostname is
62 // stored. 65 // stored.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 bool is_default_subframe_site_instance_; 189 bool is_default_subframe_site_instance_;
187 190
188 base::ObserverList<Observer, true> observers_; 191 base::ObserverList<Observer, true> observers_;
189 192
190 DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl); 193 DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl);
191 }; 194 };
192 195
193 } // namespace content 196 } // namespace content
194 197
195 #endif // CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ 198 #endif // CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_proxy_host.cc ('k') | content/browser/site_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698