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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // fired. The value of this changes over time. For example, if true and the | 244 // fired. The value of this changes over time. For example, if true and the |
245 // before unload listener is executed and allows the user to exit, then this | 245 // before unload listener is executed and allows the user to exit, then this |
246 // returns false. | 246 // returns false. |
247 bool NeedToFireBeforeUnload(); | 247 bool NeedToFireBeforeUnload(); |
248 | 248 |
249 // Expose the render manager for testing. | 249 // Expose the render manager for testing. |
250 RenderViewHostManager* render_manager_for_testing() { | 250 RenderViewHostManager* render_manager_for_testing() { |
251 return &render_manager_; | 251 return &render_manager_; |
252 } | 252 } |
253 | 253 |
254 // In the underlying RenderViewHostManager, swaps in the provided | |
255 // RenderViewHost to replace the current RenderViewHost. The current RVH | |
256 // will be shutdown and ultimately deleted. | |
257 void SwapInRenderViewHost(RenderViewHost* rvh); | |
258 | |
259 // Commands ------------------------------------------------------------------ | 254 // Commands ------------------------------------------------------------------ |
260 | 255 |
261 // Implementation of PageNavigator. | 256 // Implementation of PageNavigator. |
262 | 257 |
263 // Deprecated. Please use the one-argument variant instead. | 258 // Deprecated. Please use the one-argument variant instead. |
264 // TODO(adriansc): Remove this method once refactoring changed all call sites. | 259 // TODO(adriansc): Remove this method once refactoring changed all call sites. |
265 virtual TabContents* OpenURL(const GURL& url, | 260 virtual TabContents* OpenURL(const GURL& url, |
266 const GURL& referrer, | 261 const GURL& referrer, |
267 WindowOpenDisposition disposition, | 262 WindowOpenDisposition disposition, |
268 PageTransition::Type transition) OVERRIDE; | 263 PageTransition::Type transition) OVERRIDE; |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 ObserverList<TabContentsObserver> observers_; | 850 ObserverList<TabContentsObserver> observers_; |
856 | 851 |
857 // Content restrictions, used to disable print/copy etc based on content's | 852 // Content restrictions, used to disable print/copy etc based on content's |
858 // (full-page plugins for now only) permissions. | 853 // (full-page plugins for now only) permissions. |
859 int content_restrictions_; | 854 int content_restrictions_; |
860 | 855 |
861 DISALLOW_COPY_AND_ASSIGN(TabContents); | 856 DISALLOW_COPY_AND_ASSIGN(TabContents); |
862 }; | 857 }; |
863 | 858 |
864 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 859 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |