| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 interstitial_page_ = NULL; | 279 interstitial_page_ = NULL; |
| 280 } | 280 } |
| 281 | 281 |
| 282 // Returns the currently showing interstitial, NULL if no interstitial is | 282 // Returns the currently showing interstitial, NULL if no interstitial is |
| 283 // showing. | 283 // showing. |
| 284 InterstitialPageImpl* interstitial_page() const { return interstitial_page_; } | 284 InterstitialPageImpl* interstitial_page() const { return interstitial_page_; } |
| 285 | 285 |
| 286 // NotificationObserver implementation. | 286 // NotificationObserver implementation. |
| 287 virtual void Observe(int type, | 287 virtual void Observe(int type, |
| 288 const NotificationSource& source, | 288 const NotificationSource& source, |
| 289 const NotificationDetails& details) OVERRIDE; | 289 const NotificationDetails& details) override; |
| 290 | 290 |
| 291 // Returns whether the given RenderFrameHost (or its associated | 291 // Returns whether the given RenderFrameHost (or its associated |
| 292 // RenderViewHost) is on the list of swapped out RenderFrameHosts. | 292 // RenderViewHost) is on the list of swapped out RenderFrameHosts. |
| 293 bool IsRVHOnSwappedOutList(RenderViewHostImpl* rvh) const; | 293 bool IsRVHOnSwappedOutList(RenderViewHostImpl* rvh) const; |
| 294 bool IsOnSwappedOutList(RenderFrameHostImpl* rfh) const; | 294 bool IsOnSwappedOutList(RenderFrameHostImpl* rfh) const; |
| 295 | 295 |
| 296 // Returns the swapped out RenderViewHost or RenderFrameHost for the given | 296 // Returns the swapped out RenderViewHost or RenderFrameHost for the given |
| 297 // SiteInstance, if any. This method is *deprecated* and | 297 // SiteInstance, if any. This method is *deprecated* and |
| 298 // GetRenderFrameProxyHost should be used. | 298 // GetRenderFrameProxyHost should be used. |
| 299 RenderViewHostImpl* GetSwappedOutRenderViewHost(SiteInstance* instance) const; | 299 RenderViewHostImpl* GetSwappedOutRenderViewHost(SiteInstance* instance) const; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 NotificationRegistrar registrar_; | 531 NotificationRegistrar registrar_; |
| 532 | 532 |
| 533 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 533 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 534 | 534 |
| 535 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 535 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 536 }; | 536 }; |
| 537 | 537 |
| 538 } // namespace content | 538 } // namespace content |
| 539 | 539 |
| 540 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 540 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |