| 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 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 const Extension* GetExtensionContaining(const GURL& url); | 1082 const Extension* GetExtensionContaining(const GURL& url); |
| 1083 | 1083 |
| 1084 // Resets app_icon_ and if |extension| is non-null creates a new | 1084 // Resets app_icon_ and if |extension| is non-null creates a new |
| 1085 // ImageLoadingTracker to load the extension's image. | 1085 // ImageLoadingTracker to load the extension's image. |
| 1086 void UpdateExtensionAppIcon(const Extension* extension); | 1086 void UpdateExtensionAppIcon(const Extension* extension); |
| 1087 | 1087 |
| 1088 // ImageLoadingTracker::Observer. | 1088 // ImageLoadingTracker::Observer. |
| 1089 virtual void OnImageLoaded(SkBitmap* image, ExtensionResource resource, | 1089 virtual void OnImageLoaded(SkBitmap* image, ExtensionResource resource, |
| 1090 int index); | 1090 int index); |
| 1091 | 1091 |
| 1092 // Checks with the PrerenderManager if the specified URL has been preloaded, |
| 1093 // and if so, swap the RenderViewHost with the preload into this TabContents |
| 1094 // object. |
| 1095 bool MaybeUsePreloadedPage(const GURL& url); |
| 1096 |
| 1092 // Data for core operation --------------------------------------------------- | 1097 // Data for core operation --------------------------------------------------- |
| 1093 | 1098 |
| 1094 // Delegate for notifying our owner about stuff. Not owned by us. | 1099 // Delegate for notifying our owner about stuff. Not owned by us. |
| 1095 TabContentsDelegate* delegate_; | 1100 TabContentsDelegate* delegate_; |
| 1096 | 1101 |
| 1097 // Handles the back/forward list and loading. | 1102 // Handles the back/forward list and loading. |
| 1098 NavigationController controller_; | 1103 NavigationController controller_; |
| 1099 | 1104 |
| 1100 // The corresponding view. | 1105 // The corresponding view. |
| 1101 scoped_ptr<TabContentsView> view_; | 1106 scoped_ptr<TabContentsView> view_; |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1343 // (full-page plugins for now only) permissions. | 1348 // (full-page plugins for now only) permissions. |
| 1344 int content_restrictions_; | 1349 int content_restrictions_; |
| 1345 | 1350 |
| 1346 // All the IPC message filters for this render view. | 1351 // All the IPC message filters for this render view. |
| 1347 std::vector<IPC::Channel::Listener*> message_filters_; | 1352 std::vector<IPC::Channel::Listener*> message_filters_; |
| 1348 | 1353 |
| 1349 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1354 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1350 }; | 1355 }; |
| 1351 | 1356 |
| 1352 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1357 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |