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_PUBLIC_BROWSER_SITE_INSTANCE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SITE_INSTANCE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_SITE_INSTANCE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SITE_INSTANCE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 | 12 |
13 class BrowsingInstance; | |
14 | |
15 namespace content { | 13 namespace content { |
16 class BrowserContext; | 14 class BrowserContext; |
| 15 class BrowsingInstance; |
17 class RenderProcessHost; | 16 class RenderProcessHost; |
18 | 17 |
19 /////////////////////////////////////////////////////////////////////////////// | 18 /////////////////////////////////////////////////////////////////////////////// |
20 // SiteInstance interface. | 19 // SiteInstance interface. |
21 // | 20 // |
22 // A SiteInstance is a data structure that is associated with all pages in a | 21 // A SiteInstance is a data structure that is associated with all pages in a |
23 // given instance of a web site. Here, a web site is identified by its | 22 // given instance of a web site. Here, a web site is identified by its |
24 // registered domain name and scheme. An instance includes all pages | 23 // registered domain name and scheme. An instance includes all pages |
25 // that are connected (i.e., either a user or a script navigated from one | 24 // that are connected (i.e., either a user or a script navigated from one |
26 // to the other). We represent instances using the BrowsingInstance class. | 25 // to the other). We represent instances using the BrowsingInstance class. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 protected: | 116 protected: |
118 friend class base::RefCounted<SiteInstance>; | 117 friend class base::RefCounted<SiteInstance>; |
119 | 118 |
120 SiteInstance() {} | 119 SiteInstance() {} |
121 virtual ~SiteInstance() {} | 120 virtual ~SiteInstance() {} |
122 }; | 121 }; |
123 | 122 |
124 } // namespace content. | 123 } // namespace content. |
125 | 124 |
126 #endif // CONTENT_PUBLIC_BROWSER_SITE_INSTANCE_H_ | 125 #endif // CONTENT_PUBLIC_BROWSER_SITE_INSTANCE_H_ |
OLD | NEW |