| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/browser/web_contents/web_contents_impl.h" | 10 #include "content/browser/web_contents/web_contents_impl.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const Referrer& referrer, | 56 const Referrer& referrer, |
| 57 ui::PageTransition transition) override; | 57 ui::PageTransition transition) override; |
| 58 const std::string& GetSaveFrameHeaders() override; | 58 const std::string& GetSaveFrameHeaders() override; |
| 59 | 59 |
| 60 // True if a cross-site navigation is pending. | 60 // True if a cross-site navigation is pending. |
| 61 bool CrossProcessNavigationPending(); | 61 bool CrossProcessNavigationPending(); |
| 62 | 62 |
| 63 // Prevent interaction with views. | 63 // Prevent interaction with views. |
| 64 bool CreateRenderViewForRenderManager( | 64 bool CreateRenderViewForRenderManager( |
| 65 RenderViewHost* render_view_host, | 65 RenderViewHost* render_view_host, |
| 66 int opener_route_id, | 66 int opener_frame_routing_id, |
| 67 int proxy_routing_id, | 67 int proxy_routing_id, |
| 68 const FrameReplicationState& replicated_frame_state, | 68 const FrameReplicationState& replicated_frame_state, |
| 69 bool for_main_frame) override; | 69 bool for_main_frame) override; |
| 70 void UpdateRenderViewSizeForRenderManager() override {} | 70 void UpdateRenderViewSizeForRenderManager() override {} |
| 71 | 71 |
| 72 // Returns a clone of this TestWebContents. The returned object is also a | 72 // Returns a clone of this TestWebContents. The returned object is also a |
| 73 // TestWebContents. The caller owns the returned object. | 73 // TestWebContents. The caller owns the returned object. |
| 74 WebContents* Clone() override; | 74 WebContents* Clone() override; |
| 75 | 75 |
| 76 // Allow mocking of the RenderViewHostDelegateView. | 76 // Allow mocking of the RenderViewHostDelegateView. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // Expectations for arguments of |SetHistoryOffsetAndLength()|. | 134 // Expectations for arguments of |SetHistoryOffsetAndLength()|. |
| 135 bool expect_set_history_offset_and_length_; | 135 bool expect_set_history_offset_and_length_; |
| 136 int expect_set_history_offset_and_length_history_offset_; | 136 int expect_set_history_offset_and_length_history_offset_; |
| 137 int expect_set_history_offset_and_length_history_length_; | 137 int expect_set_history_offset_and_length_history_length_; |
| 138 std::string save_frame_headers_; | 138 std::string save_frame_headers_; |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace content | 141 } // namespace content |
| 142 | 142 |
| 143 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 143 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
| OLD | NEW |