| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 const std::string& GetSaveFrameHeaders() override; | 65 const std::string& GetSaveFrameHeaders() override; |
| 66 | 66 |
| 67 // True if a cross-site navigation is pending. | 67 // True if a cross-site navigation is pending. |
| 68 bool CrossProcessNavigationPending(); | 68 bool CrossProcessNavigationPending(); |
| 69 | 69 |
| 70 // Prevent interaction with views. | 70 // Prevent interaction with views. |
| 71 bool CreateRenderViewForRenderManager( | 71 bool CreateRenderViewForRenderManager( |
| 72 RenderViewHost* render_view_host, | 72 RenderViewHost* render_view_host, |
| 73 int opener_frame_routing_id, | 73 int opener_frame_routing_id, |
| 74 int proxy_routing_id, | 74 int proxy_routing_id, |
| 75 const FrameReplicationState& replicated_frame_state, | 75 const FrameReplicationState& replicated_frame_state) override; |
| 76 bool for_main_frame) override; | |
| 77 void UpdateRenderViewSizeForRenderManager() override {} | 76 void UpdateRenderViewSizeForRenderManager() override {} |
| 78 | 77 |
| 79 // Returns a clone of this TestWebContents. The returned object is also a | 78 // Returns a clone of this TestWebContents. The returned object is also a |
| 80 // TestWebContents. The caller owns the returned object. | 79 // TestWebContents. The caller owns the returned object. |
| 81 WebContents* Clone() override; | 80 WebContents* Clone() override; |
| 82 | 81 |
| 83 // Allow mocking of the RenderViewHostDelegateView. | 82 // Allow mocking of the RenderViewHostDelegateView. |
| 84 RenderViewHostDelegateView* GetDelegateView() override; | 83 RenderViewHostDelegateView* GetDelegateView() override; |
| 85 void set_delegate_view(RenderViewHostDelegateView* view) { | 84 void set_delegate_view(RenderViewHostDelegateView* view) { |
| 86 delegate_view_override_ = view; | 85 delegate_view_override_ = view; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // Expectations for arguments of |SetHistoryOffsetAndLength()|. | 140 // Expectations for arguments of |SetHistoryOffsetAndLength()|. |
| 142 bool expect_set_history_offset_and_length_; | 141 bool expect_set_history_offset_and_length_; |
| 143 int expect_set_history_offset_and_length_history_offset_; | 142 int expect_set_history_offset_and_length_history_offset_; |
| 144 int expect_set_history_offset_and_length_history_length_; | 143 int expect_set_history_offset_and_length_history_length_; |
| 145 std::string save_frame_headers_; | 144 std::string save_frame_headers_; |
| 146 }; | 145 }; |
| 147 | 146 |
| 148 } // namespace content | 147 } // namespace content |
| 149 | 148 |
| 150 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ | 149 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_H_ |
| OLD | NEW |