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 "content/public/common/page_transition_types.h" | 8 #include "ui/base/page_transition_types.h" |
9 | 9 |
10 class GURL; | 10 class GURL; |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 class BrowserContext; | 14 class BrowserContext; |
15 class RenderFrameHost; | 15 class RenderFrameHost; |
16 class RenderViewHost; | 16 class RenderViewHost; |
17 class SiteInstance; | 17 class SiteInstance; |
18 class WebContents; | 18 class WebContents; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 virtual void TestSetIsLoading(bool value) = 0; | 73 virtual void TestSetIsLoading(bool value) = 0; |
74 | 74 |
75 // Simulates the current RVH notifying that it has unloaded so that the | 75 // Simulates the current RVH notifying that it has unloaded so that the |
76 // pending RVH navigation can proceed. | 76 // pending RVH navigation can proceed. |
77 // Does nothing if no cross-navigation is pending. | 77 // Does nothing if no cross-navigation is pending. |
78 virtual void ProceedWithCrossSiteNavigation() = 0; | 78 virtual void ProceedWithCrossSiteNavigation() = 0; |
79 | 79 |
80 virtual void TestDidNavigate(RenderFrameHost* render_frame_host, | 80 virtual void TestDidNavigate(RenderFrameHost* render_frame_host, |
81 int page_id, | 81 int page_id, |
82 const GURL& url, | 82 const GURL& url, |
83 PageTransition transition) = 0; | 83 ui::PageTransition transition) = 0; |
84 | 84 |
85 virtual void TestDidNavigateWithReferrer( | 85 virtual void TestDidNavigateWithReferrer( |
86 RenderFrameHost* render_frame_host, | 86 RenderFrameHost* render_frame_host, |
87 int page_id, | 87 int page_id, |
88 const GURL& url, | 88 const GURL& url, |
89 const Referrer& referrer, | 89 const Referrer& referrer, |
90 PageTransition transition) = 0; | 90 ui::PageTransition transition) = 0; |
91 | 91 |
92 // Promote ComputeWebkitPrefs to public. | 92 // Promote ComputeWebkitPrefs to public. |
93 virtual WebPreferences TestComputeWebkitPrefs() = 0; | 93 virtual WebPreferences TestComputeWebkitPrefs() = 0; |
94 }; | 94 }; |
95 | 95 |
96 } // namespace content | 96 } // namespace content |
97 | 97 |
98 #endif // CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ | 98 #endif // CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ |
OLD | NEW |