OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ |
6 #define CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ | 6 #define CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ |
7 | 7 |
8 #include "ui/base/page_transition_types.h" | 8 #include "ui/base/page_transition_types.h" |
9 | 9 |
10 class GURL; | 10 class GURL; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Sets the loading state to the given value. | 73 // Sets the loading state to the given value. |
74 virtual void TestSetIsLoading(bool value) = 0; | 74 virtual void TestSetIsLoading(bool value) = 0; |
75 | 75 |
76 // Simulates the current RVH notifying that it has unloaded so that the | 76 // Simulates the current RVH notifying that it has unloaded so that the |
77 // pending RVH navigation can proceed. | 77 // pending RVH navigation can proceed. |
78 // Does nothing if no cross-navigation is pending. | 78 // Does nothing if no cross-navigation is pending. |
79 virtual void ProceedWithCrossSiteNavigation() = 0; | 79 virtual void ProceedWithCrossSiteNavigation() = 0; |
80 | 80 |
81 virtual void TestDidNavigate(RenderFrameHost* render_frame_host, | 81 virtual void TestDidNavigate(RenderFrameHost* render_frame_host, |
82 int page_id, | 82 int page_id, |
| 83 int nav_entry_id, |
| 84 bool did_create_new_entry, |
83 const GURL& url, | 85 const GURL& url, |
84 ui::PageTransition transition) = 0; | 86 ui::PageTransition transition) = 0; |
85 | 87 |
86 virtual void TestDidNavigateWithReferrer( | 88 virtual void TestDidNavigateWithReferrer(RenderFrameHost* render_frame_host, |
87 RenderFrameHost* render_frame_host, | 89 int page_id, |
88 int page_id, | 90 int nav_entry_id, |
89 const GURL& url, | 91 bool did_create_new_entry, |
90 const Referrer& referrer, | 92 const GURL& url, |
91 ui::PageTransition transition) = 0; | 93 const Referrer& referrer, |
| 94 ui::PageTransition transition) = 0; |
92 }; | 95 }; |
93 | 96 |
94 } // namespace content | 97 } // namespace content |
95 | 98 |
96 #endif // CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ | 99 #endif // CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ |
OLD | NEW |