Chromium Code Reviews| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 57 SiteInstance* instance); | 57 SiteInstance* instance); |
| 58 | 58 |
| 59 // Simulates the appropriate RenderView (pending if any, current otherwise) | 59 // Simulates the appropriate RenderView (pending if any, current otherwise) |
| 60 // sending a navigate notification for the NavigationController pending entry. | 60 // sending a navigate notification for the NavigationController pending entry. |
| 61 virtual void CommitPendingNavigation() = 0; | 61 virtual void CommitPendingNavigation() = 0; |
| 62 | 62 |
| 63 // Gets the pending RenderFrameHost, if any, for the main frame. For the | 63 // Gets the pending RenderFrameHost, if any, for the main frame. For the |
| 64 // current RenderFrameHost of the main frame, use WebContents::GetMainFrame(). | 64 // current RenderFrameHost of the main frame, use WebContents::GetMainFrame(). |
| 65 virtual RenderFrameHost* GetPendingMainFrame() const = 0; | 65 virtual RenderFrameHost* GetPendingMainFrame() const = 0; |
| 66 | 66 |
| 67 // Gets the speculative RenderFrameHost, if any, for the main frame. | |
|
clamy
2014/12/19 13:35:57
Please preface this with a PlzNavigate comment. Al
nasko
2014/12/20 00:09:09
This definitely should not be exposed through publ
carlosk
2014/12/29 16:40:16
I added it to the public API because there is alre
| |
| 68 virtual RenderFrameHost* GetSpeculativeMainFrame() const = 0; | |
| 69 | |
| 67 // Creates a pending navigation to the given URL with the default parameters | 70 // Creates a pending navigation to the given URL with the default parameters |
| 68 // and then commits the load with a page ID one larger than any seen. This | 71 // and then commits the load with a page ID one larger than any seen. This |
| 69 // emulates what happens on a new navigation. | 72 // emulates what happens on a new navigation. |
| 70 virtual void NavigateAndCommit(const GURL& url) = 0; | 73 virtual void NavigateAndCommit(const GURL& url) = 0; |
| 71 | 74 |
| 72 // Sets the loading state to the given value. | 75 // Sets the loading state to the given value. |
| 73 virtual void TestSetIsLoading(bool value) = 0; | 76 virtual void TestSetIsLoading(bool value) = 0; |
| 74 | 77 |
| 75 // Simulates the current RVH notifying that it has unloaded so that the | 78 // Simulates the current RVH notifying that it has unloaded so that the |
| 76 // pending RVH navigation can proceed. | 79 // pending RVH navigation can proceed. |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 89 const Referrer& referrer, | 92 const Referrer& referrer, |
| 90 ui::PageTransition transition) = 0; | 93 ui::PageTransition transition) = 0; |
| 91 | 94 |
| 92 // Promote ComputeWebkitPrefs to public. | 95 // Promote ComputeWebkitPrefs to public. |
| 93 virtual WebPreferences TestComputeWebkitPrefs() = 0; | 96 virtual WebPreferences TestComputeWebkitPrefs() = 0; |
| 94 }; | 97 }; |
| 95 | 98 |
| 96 } // namespace content | 99 } // namespace content |
| 97 | 100 |
| 98 #endif // CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ | 101 #endif // CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ |
| OLD | NEW |