| 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_TEST_TEST_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
| 6 #define CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 6 #define CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include "content/browser/web_contents/web_contents_impl.h" | 8 #include "content/browser/web_contents/web_contents_impl.h" |
| 9 #include "content/public/test/web_contents_tester.h" | 9 #include "content/public/test/web_contents_tester.h" |
| 10 #include "content/test/test_render_frame_host.h" | 10 #include "content/test/test_render_frame_host.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 TestRenderViewHost* GetRenderViewHost() const override; | 33 TestRenderViewHost* GetRenderViewHost() const override; |
| 34 | 34 |
| 35 // WebContentsTester implementation. | 35 // WebContentsTester implementation. |
| 36 void CommitPendingNavigation() override; | 36 void CommitPendingNavigation() override; |
| 37 TestRenderFrameHost* GetPendingMainFrame() const override; | 37 TestRenderFrameHost* GetPendingMainFrame() const override; |
| 38 void NavigateAndCommit(const GURL& url) override; | 38 void NavigateAndCommit(const GURL& url) override; |
| 39 void TestSetIsLoading(bool value) override; | 39 void TestSetIsLoading(bool value) override; |
| 40 void ProceedWithCrossSiteNavigation() override; | 40 void ProceedWithCrossSiteNavigation() override; |
| 41 void TestDidNavigate(RenderFrameHost* render_frame_host, | 41 void TestDidNavigate(RenderFrameHost* render_frame_host, |
| 42 int page_id, | 42 int page_id, |
| 43 int nav_entry_id, | |
| 44 bool did_create_new_entry, | |
| 45 const GURL& url, | 43 const GURL& url, |
| 46 ui::PageTransition transition) override; | 44 ui::PageTransition transition) override; |
| 47 void TestDidNavigateWithReferrer(RenderFrameHost* render_frame_host, | 45 void TestDidNavigateWithReferrer(RenderFrameHost* render_frame_host, |
| 48 int page_id, | 46 int page_id, |
| 49 int nav_entry_id, | |
| 50 bool did_create_new_entry, | |
| 51 const GURL& url, | 47 const GURL& url, |
| 52 const Referrer& referrer, | 48 const Referrer& referrer, |
| 53 ui::PageTransition transition) override; | 49 ui::PageTransition transition) override; |
| 54 | 50 |
| 55 // True if a cross-site navigation is pending. | 51 // True if a cross-site navigation is pending. |
| 56 bool CrossProcessNavigationPending(); | 52 bool CrossProcessNavigationPending(); |
| 57 | 53 |
| 58 // Prevent interaction with views. | 54 // Prevent interaction with views. |
| 59 bool CreateRenderViewForRenderManager(RenderViewHost* render_view_host, | 55 bool CreateRenderViewForRenderManager(RenderViewHost* render_view_host, |
| 60 int opener_route_id, | 56 int opener_route_id, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 117 |
| 122 // Expectations for arguments of |SetHistoryOffsetAndLength()|. | 118 // Expectations for arguments of |SetHistoryOffsetAndLength()|. |
| 123 bool expect_set_history_offset_and_length_; | 119 bool expect_set_history_offset_and_length_; |
| 124 int expect_set_history_offset_and_length_history_offset_; | 120 int expect_set_history_offset_and_length_history_offset_; |
| 125 int expect_set_history_offset_and_length_history_length_; | 121 int expect_set_history_offset_and_length_history_length_; |
| 126 }; | 122 }; |
| 127 | 123 |
| 128 } // namespace content | 124 } // namespace content |
| 129 | 125 |
| 130 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 126 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
| OLD | NEW |