| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ | 5 #ifndef CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ |
| 6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ | 6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ |
| 7 | 7 |
| 8 // A collection of functions designed for use with content_shell based browser | 8 // A collection of functions designed for use with content_shell based browser |
| 9 // tests internal to the content/ module. | 9 // tests internal to the content/ module. |
| 10 // Note: If a function here also works with browser_tests, it should be in | 10 // Note: If a function here also works with browser_tests, it should be in |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 class RenderFrameHost; | 35 class RenderFrameHost; |
| 36 class RenderWidgetHostViewChildFrame; | 36 class RenderWidgetHostViewChildFrame; |
| 37 class Shell; | 37 class Shell; |
| 38 class SiteInstance; | 38 class SiteInstance; |
| 39 class ToRenderFrameHost; | 39 class ToRenderFrameHost; |
| 40 | 40 |
| 41 // Navigates the frame represented by |node| to |url|, blocking until the | 41 // Navigates the frame represented by |node| to |url|, blocking until the |
| 42 // navigation finishes. | 42 // navigation finishes. |
| 43 void NavigateFrameToURL(FrameTreeNode* node, const GURL& url); | 43 void NavigateFrameToURL(FrameTreeNode* node, const GURL& url); |
| 44 | 44 |
| 45 // Sets the DialogManager to proceed by default or not when showing a | |
| 46 // BeforeUnload dialog. | |
| 47 void SetShouldProceedOnBeforeUnload(Shell* shell, bool proceed); | |
| 48 | |
| 49 // Extends the ToRenderFrameHost mechanism to FrameTreeNodes. | 45 // Extends the ToRenderFrameHost mechanism to FrameTreeNodes. |
| 50 RenderFrameHost* ConvertToRenderFrameHost(FrameTreeNode* frame_tree_node); | 46 RenderFrameHost* ConvertToRenderFrameHost(FrameTreeNode* frame_tree_node); |
| 51 | 47 |
| 52 // Creates compact textual representations of the state of the frame tree that | 48 // Creates compact textual representations of the state of the frame tree that |
| 53 // is appropriate for use in assertions. | 49 // is appropriate for use in assertions. |
| 54 // | 50 // |
| 55 // The diagrams show frame tree structure, the SiteInstance of current frames, | 51 // The diagrams show frame tree structure, the SiteInstance of current frames, |
| 56 // presence of pending frames, and the SiteInstances of any and all proxies. | 52 // presence of pending frames, and the SiteInstances of any and all proxies. |
| 57 // They look like this: | 53 // They look like this: |
| 58 // | 54 // |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 197 |
| 202 // The RunLoop used to spin the message loop. | 198 // The RunLoop used to spin the message loop. |
| 203 base::RunLoop run_loop_; | 199 base::RunLoop run_loop_; |
| 204 | 200 |
| 205 DISALLOW_COPY_AND_ASSIGN(UrlCommitObserver); | 201 DISALLOW_COPY_AND_ASSIGN(UrlCommitObserver); |
| 206 }; | 202 }; |
| 207 | 203 |
| 208 } // namespace content | 204 } // namespace content |
| 209 | 205 |
| 210 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ | 206 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ |
| OLD | NEW |