OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 class AutocompleteHistoryManager; | 58 class AutocompleteHistoryManager; |
59 class AutoFillManager; | 59 class AutoFillManager; |
60 class BlockedContentContainer; | 60 class BlockedContentContainer; |
61 class DOMUI; | 61 class DOMUI; |
62 class DownloadItem; | 62 class DownloadItem; |
63 class Extension; | 63 class Extension; |
64 class FileSelectHelper; | 64 class FileSelectHelper; |
65 class InfoBarDelegate; | 65 class InfoBarDelegate; |
66 class LoadNotificationDetails; | 66 class LoadNotificationDetails; |
67 class OmniboxSearchHint; | 67 class OmniboxSearchHint; |
68 class PluginInstaller; | 68 class PluginInstallerInfoBarDelegate; |
69 class Profile; | 69 class Profile; |
70 class PrerenderManager; | 70 class PrerenderManager; |
71 struct RendererPreferences; | 71 struct RendererPreferences; |
72 class RenderViewHost; | 72 class RenderViewHost; |
73 class SessionStorageNamespace; | 73 class SessionStorageNamespace; |
74 class SiteInstance; | 74 class SiteInstance; |
75 class SkBitmap; | 75 class SkBitmap; |
76 class TabContents; | 76 class TabContents; |
77 class TabContentsDelegate; | 77 class TabContentsDelegate; |
78 class TabContentsSSLHelper; | 78 class TabContentsSSLHelper; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 NavigationController& controller() { return controller_; } | 139 NavigationController& controller() { return controller_; } |
140 const NavigationController& controller() const { return controller_; } | 140 const NavigationController& controller() const { return controller_; } |
141 | 141 |
142 // Returns the user profile associated with this TabContents (via the | 142 // Returns the user profile associated with this TabContents (via the |
143 // NavigationController). | 143 // NavigationController). |
144 Profile* profile() const { return controller_.profile(); } | 144 Profile* profile() const { return controller_.profile(); } |
145 | 145 |
146 // Returns true if contains content rendered by an extension. | 146 // Returns true if contains content rendered by an extension. |
147 bool HostsExtension() const; | 147 bool HostsExtension() const; |
148 | 148 |
149 // Returns the PluginInstaller, creating it if necessary. | 149 // Returns the PluginInstallerInfoBarDelegate, creating it if necessary. |
150 PluginInstaller* GetPluginInstaller(); | 150 PluginInstallerInfoBarDelegate* GetPluginInstaller(); |
151 | 151 |
152 // Returns the TabContentsSSLHelper, creating it if necessary. | 152 // Returns the TabContentsSSLHelper, creating it if necessary. |
153 TabContentsSSLHelper* GetSSLHelper(); | 153 TabContentsSSLHelper* GetSSLHelper(); |
154 | 154 |
155 // Returns the SavePackage which manages the page saving job. May be NULL. | 155 // Returns the SavePackage which manages the page saving job. May be NULL. |
156 SavePackage* save_package() const { return save_package_.get(); } | 156 SavePackage* save_package() const { return save_package_.get(); } |
157 | 157 |
158 // Return the currently active RenderProcessHost and RenderViewHost. Each of | 158 // Return the currently active RenderProcessHost and RenderViewHost. Each of |
159 // these may change over time. | 159 // these may change over time. |
160 RenderProcessHost* GetRenderProcessHost() const; | 160 RenderProcessHost* GetRenderProcessHost() const; |
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 | 1118 |
1119 // SavePackage, lazily created. | 1119 // SavePackage, lazily created. |
1120 scoped_refptr<SavePackage> save_package_; | 1120 scoped_refptr<SavePackage> save_package_; |
1121 | 1121 |
1122 // AutocompleteHistoryManager. | 1122 // AutocompleteHistoryManager. |
1123 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; | 1123 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; |
1124 | 1124 |
1125 // AutoFillManager. | 1125 // AutoFillManager. |
1126 scoped_ptr<AutoFillManager> autofill_manager_; | 1126 scoped_ptr<AutoFillManager> autofill_manager_; |
1127 | 1127 |
1128 // PluginInstaller, lazily created. | 1128 // PluginInstallerInfoBarDelegate, lazily created. |
1129 scoped_ptr<PluginInstaller> plugin_installer_; | 1129 scoped_ptr<PluginInstallerInfoBarDelegate> plugin_installer_; |
1130 | 1130 |
1131 // TabContentsSSLHelper, lazily created. | 1131 // TabContentsSSLHelper, lazily created. |
1132 scoped_ptr<TabContentsSSLHelper> ssl_helper_; | 1132 scoped_ptr<TabContentsSSLHelper> ssl_helper_; |
1133 | 1133 |
1134 // FileSelectHelper, lazily created. | 1134 // FileSelectHelper, lazily created. |
1135 scoped_ptr<FileSelectHelper> file_select_helper_; | 1135 scoped_ptr<FileSelectHelper> file_select_helper_; |
1136 | 1136 |
1137 // Handles drag and drop event forwarding to extensions. | 1137 // Handles drag and drop event forwarding to extensions. |
1138 BookmarkDrag* bookmark_drag_; | 1138 BookmarkDrag* bookmark_drag_; |
1139 | 1139 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 ObserverList<WebNavigationObserver> web_navigation_observers_; | 1339 ObserverList<WebNavigationObserver> web_navigation_observers_; |
1340 | 1340 |
1341 // Content restrictions, used to disable print/copy etc based on content's | 1341 // Content restrictions, used to disable print/copy etc based on content's |
1342 // (full-page plugins for now only) permissions. | 1342 // (full-page plugins for now only) permissions. |
1343 int content_restrictions_; | 1343 int content_restrictions_; |
1344 | 1344 |
1345 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1345 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1346 }; | 1346 }; |
1347 | 1347 |
1348 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1348 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |