OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 class FileSelectHelper; | 72 class FileSelectHelper; |
73 class InfoBarDelegate; | 73 class InfoBarDelegate; |
74 class LoadNotificationDetails; | 74 class LoadNotificationDetails; |
75 class MatchPreview; | 75 class MatchPreview; |
76 class OmniboxSearchHint; | 76 class OmniboxSearchHint; |
77 class PasswordManager; | 77 class PasswordManager; |
78 class PluginInstaller; | 78 class PluginInstaller; |
79 class Profile; | 79 class Profile; |
80 struct RendererPreferences; | 80 struct RendererPreferences; |
81 class RenderViewHost; | 81 class RenderViewHost; |
| 82 class SessionStorageNamespace; |
82 class SiteInstance; | 83 class SiteInstance; |
83 class SkBitmap; | 84 class SkBitmap; |
84 class TabContents; | 85 class TabContents; |
85 class TabContentsDelegate; | 86 class TabContentsDelegate; |
86 class TabContentsSSLHelper; | 87 class TabContentsSSLHelper; |
87 class TabContentsView; | 88 class TabContentsView; |
88 class URLPattern; | 89 class URLPattern; |
89 struct ThumbnailScore; | 90 struct ThumbnailScore; |
90 struct ViewHostMsg_DomMessage_Params; | 91 struct ViewHostMsg_DomMessage_Params; |
91 struct ViewHostMsg_FrameNavigate_Params; | 92 struct ViewHostMsg_FrameNavigate_Params; |
(...skipping 20 matching lines...) Expand all Loading... |
112 // state changed. | 113 // state changed. |
113 INVALIDATE_LOAD = 1 << 2, // The loading state has changed. | 114 INVALIDATE_LOAD = 1 << 2, // The loading state has changed. |
114 INVALIDATE_PAGE_ACTIONS = 1 << 3, // Page action icons have changed. | 115 INVALIDATE_PAGE_ACTIONS = 1 << 3, // Page action icons have changed. |
115 INVALIDATE_BOOKMARK_BAR = 1 << 4, // State of ShouldShowBookmarkBar | 116 INVALIDATE_BOOKMARK_BAR = 1 << 4, // State of ShouldShowBookmarkBar |
116 // changed. | 117 // changed. |
117 INVALIDATE_TITLE = 1 << 5, // The title changed. | 118 INVALIDATE_TITLE = 1 << 5, // The title changed. |
118 }; | 119 }; |
119 | 120 |
120 // |base_tab_contents| is used if we want to size the new tab contents view | 121 // |base_tab_contents| is used if we want to size the new tab contents view |
121 // based on an existing tab contents view. This can be NULL if not needed. | 122 // based on an existing tab contents view. This can be NULL if not needed. |
| 123 // |
| 124 // The session storage namespace parameter allows multiple render views and |
| 125 // tab contentses to share the same session storage (part of the WebStorage |
| 126 // spec) space. Passing in NULL simply allocates a new one (which is useful |
| 127 // for testing). |
122 TabContents(Profile* profile, | 128 TabContents(Profile* profile, |
123 SiteInstance* site_instance, | 129 SiteInstance* site_instance, |
124 int routing_id, | 130 int routing_id, |
125 const TabContents* base_tab_contents); | 131 const TabContents* base_tab_contents, |
| 132 SessionStorageNamespace* session_storage_namespace); |
126 virtual ~TabContents(); | 133 virtual ~TabContents(); |
127 | 134 |
128 static void RegisterUserPrefs(PrefService* prefs); | 135 static void RegisterUserPrefs(PrefService* prefs); |
129 | 136 |
130 // Intrinsic tab state ------------------------------------------------------- | 137 // Intrinsic tab state ------------------------------------------------------- |
131 | 138 |
132 // Returns the property bag for this tab contents, where callers can add | 139 // Returns the property bag for this tab contents, where callers can add |
133 // extra data they may wish to associate with the tab. Returns a pointer | 140 // extra data they may wish to associate with the tab. Returns a pointer |
134 // rather than a reference since the PropertyAccessors expect this. | 141 // rather than a reference since the PropertyAccessors expect this. |
135 const PropertyBag* property_bag() const { return &property_bag_; } | 142 const PropertyBag* property_bag() const { return &property_bag_; } |
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 bool displaying_pdf_content_; | 1278 bool displaying_pdf_content_; |
1272 | 1279 |
1273 scoped_ptr<MatchPreview> match_preview_; | 1280 scoped_ptr<MatchPreview> match_preview_; |
1274 | 1281 |
1275 // --------------------------------------------------------------------------- | 1282 // --------------------------------------------------------------------------- |
1276 | 1283 |
1277 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1284 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1278 }; | 1285 }; |
1279 | 1286 |
1280 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1287 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |