| 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 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 // Focuses the location bar. | 160 // Focuses the location bar. |
| 161 virtual void SetFocusToLocationBar(bool select_all) = 0; | 161 virtual void SetFocusToLocationBar(bool select_all) = 0; |
| 162 | 162 |
| 163 // Returns true if views created for this delegate should be created in a | 163 // Returns true if views created for this delegate should be created in a |
| 164 // hidden state. | 164 // hidden state. |
| 165 virtual bool IsHidden() = 0; | 165 virtual bool IsHidden() = 0; |
| 166 | 166 |
| 167 // If the delegate is an inner WebContents, this method returns the | 167 // If the delegate is an inner WebContents, this method returns the |
| 168 // FrameTreeNode ID of the frame in the outer WebContents which hosts | 168 // FrameTreeNode ID of the frame in the outer WebContents which hosts |
| 169 // the inner WebContents. Returns FrameTreeNode::kFrameTreeNodeInvalidID | 169 // the inner WebContents. Returns FrameTreeNode::kFrameTreeNodeInvalidId |
| 170 // if the delegate does not have an outer WebContents. | 170 // if the delegate does not have an outer WebContents. |
| 171 virtual int GetOuterDelegateFrameTreeNodeId() = 0; | 171 virtual int GetOuterDelegateFrameTreeNodeId() = 0; |
| 172 | 172 |
| 173 protected: | 173 protected: |
| 174 virtual ~Delegate() {} | 174 virtual ~Delegate() {} |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 // Used with FrameTree::ForEach to delete RenderFrameHosts pending shutdown | 177 // Used with FrameTree::ForEach to delete RenderFrameHosts pending shutdown |
| 178 // from a FrameTreeNode's RenderFrameHostManager. Used during destruction of | 178 // from a FrameTreeNode's RenderFrameHostManager. Used during destruction of |
| 179 // WebContentsImpl. | 179 // WebContentsImpl. |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 781 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
| 782 | 782 |
| 783 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 783 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 784 | 784 |
| 785 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 785 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 786 }; | 786 }; |
| 787 | 787 |
| 788 } // namespace content | 788 } // namespace content |
| 789 | 789 |
| 790 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 790 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |