| OLD | NEW |
| 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 16 matching lines...) Expand all Loading... |
| 27 public: | 27 public: |
| 28 // Called when this SiteInstance transitions to having no active frames, | 28 // Called when this SiteInstance transitions to having no active frames, |
| 29 // as measured by active_frame_count(). | 29 // as measured by active_frame_count(). |
| 30 virtual void ActiveFrameCountIsZero(SiteInstanceImpl* site_instance) = 0; | 30 virtual void ActiveFrameCountIsZero(SiteInstanceImpl* site_instance) = 0; |
| 31 | 31 |
| 32 // Called when the renderer process of this SiteInstance has exited. | 32 // Called when the renderer process of this SiteInstance has exited. |
| 33 virtual void RenderProcessGone(SiteInstanceImpl* site_instance) = 0; | 33 virtual void RenderProcessGone(SiteInstanceImpl* site_instance) = 0; |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 // SiteInstance interface overrides. | 36 // SiteInstance interface overrides. |
| 37 int32_t GetId() override; | 37 int32_t GetId() const override; |
| 38 bool HasProcess() const override; | 38 bool HasProcess() const override; |
| 39 RenderProcessHost* GetProcess() override; | 39 RenderProcessHost* GetProcess() override; |
| 40 BrowserContext* GetBrowserContext() const override; | 40 BrowserContext* GetBrowserContext() const override; |
| 41 const GURL& GetSiteURL() const override; | 41 const GURL& GetSiteURL() const override; |
| 42 SiteInstance* GetRelatedSiteInstance(const GURL& url) override; | 42 SiteInstance* GetRelatedSiteInstance(const GURL& url) override; |
| 43 bool IsRelatedSiteInstance(const SiteInstance* instance) override; | 43 bool IsRelatedSiteInstance(const SiteInstance* instance) override; |
| 44 size_t GetRelatedActiveContentsCount() override; | 44 size_t GetRelatedActiveContentsCount() override; |
| 45 bool RequiresDedicatedProcess() override; | 45 bool RequiresDedicatedProcess() override; |
| 46 | 46 |
| 47 // Set the web site that this SiteInstance is rendering pages for. | 47 // Set the web site that this SiteInstance is rendering pages for. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 bool has_site_; | 164 bool has_site_; |
| 165 | 165 |
| 166 base::ObserverList<Observer, true> observers_; | 166 base::ObserverList<Observer, true> observers_; |
| 167 | 167 |
| 168 DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl); | 168 DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl); |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // namespace content | 171 } // namespace content |
| 172 | 172 |
| 173 #endif // CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ | 173 #endif // CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ |
| OLD | NEW |